2014-06-28 19:08:13 +05:30
|
|
|
|
2019-11-11 16:11:00 +05:30
|
|
|
# *.po and *.pot are kept in VCS and generated by po4a-dist command
|
|
|
|
# translated/* are put in distribution but not found in VCS
|
|
|
|
#
|
|
|
|
# run:
|
|
|
|
# make -C man-po po4a-dist
|
|
|
|
# To update man page translations
|
2014-06-28 19:08:13 +05:30
|
|
|
|
2019-11-11 16:11:00 +05:30
|
|
|
DIST_translated_MANS = $(shell find translated -name '*.[1-9]')
|
2014-06-28 19:08:13 +05:30
|
|
|
|
2019-11-11 16:11:00 +05:30
|
|
|
EXTRA_DIST = po4a.cfg $(DIST_translated_MANS)
|
2014-06-28 19:08:13 +05:30
|
|
|
|
2019-11-11 16:11:00 +05:30
|
|
|
if USE_PO4A
|
2014-06-28 19:08:13 +05:30
|
|
|
|
2019-11-11 16:11:00 +05:30
|
|
|
po4a-dist:
|
|
|
|
-@po4a -M utf-8 -k 0 po4a.cfg
|
|
|
|
endif
|
2014-06-28 19:08:13 +05:30
|
|
|
|
2019-11-11 16:11:00 +05:30
|
|
|
translated_langs = $(notdir $(wildcard translated/*))
|
2014-06-28 19:08:13 +05:30
|
|
|
|
2019-11-11 16:11:00 +05:30
|
|
|
install-data-local:
|
|
|
|
for l in $(translated_langs) ; do \
|
|
|
|
for sect in `ls translated/$$l` ; do \
|
2019-10-31 15:18:15 +05:30
|
|
|
$(MKDIR_P) $(DESTDIR)$(mandir)/$$l/$$sect ; \
|
2019-11-11 16:11:00 +05:30
|
|
|
for file in `ls translated/$$l/$$sect` ; do \
|
|
|
|
$(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/$$l/$$sect ; \
|
2019-10-31 15:18:15 +05:30
|
|
|
done ; \
|
|
|
|
done ; \
|
2014-06-28 19:08:13 +05:30
|
|
|
done
|
|
|
|
|
2019-11-11 16:11:00 +05:30
|
|
|
.PHONY = translated_langs get-trans po4a-dist
|