mirror of
https://github.com/wesnoth/wesnoth
synced 2024-09-21 20:38:04 +00:00
0de76bfe8f
.pot and .po files of po4a-based domains are now updated when running update-po, if po4a is installed. (To generate the translated documents, use update-po4a.) update-po4a now removes the empty directories generated by po4a.
29 lines
653 B
Makefile
29 lines
653 B
Makefile
SUBDIRS = wesnoth wesnoth-editor wesnoth-lib wesnoth-tutorial wesnoth-httt wesnoth-ei wesnoth-trow wesnoth-tb wesnoth-tsg wesnoth-utbs
|
|
|
|
PO4A_SUBDIRS = wesnoth-man
|
|
|
|
EXTRA_DIST = Makefile.in.in
|
|
|
|
update-po:
|
|
@for dir in $(SUBDIRS); do \
|
|
( cd $$dir && make $@ || exit $? ); \
|
|
done
|
|
if PO4AUPDATE
|
|
@for dir in $(PO4A_SUBDIRS); do \
|
|
( cd $$dir && $(PO4A) --no-translations --rm-backups $$dir.cfg || \
|
|
exit $? ); \
|
|
done
|
|
endif
|
|
|
|
if PO4AUPDATE
|
|
update-po4a:
|
|
@for dir in $(PO4A_SUBDIRS); do \
|
|
( cd $$dir && $(PO4A) --rm-backups $$dir.cfg || exit $? ); \
|
|
done
|
|
endif
|
|
|
|
distclean-local:
|
|
@for dir in $(SUBDIRS); do \
|
|
rm -f $$dir/Makefile.in.in ; \
|
|
done
|