diff options
author | Sumit Bose <sbose@redhat.com> | 2010-12-23 18:14:04 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-12-23 13:18:55 -0500 |
commit | 948c021d50ce26e5935f4909ef7d4c61d28b02b5 (patch) | |
tree | a15b62f4aea0ded8a97f24dadac4c3cb3470353f /src | |
parent | 14a91abb6c9422edaaec1cc681607d6105de17d9 (diff) | |
download | sssd-948c021d50ce26e5935f4909ef7d4c61d28b02b5.tar.gz sssd-948c021d50ce26e5935f4909ef7d4c61d28b02b5.tar.xz sssd-948c021d50ce26e5935f4909ef7d4c61d28b02b5.zip |
Build and install translated man pages by default
Diffstat (limited to 'src')
-rw-r--r-- | src/man/Makefile.am | 54 |
1 files changed, 31 insertions, 23 deletions
diff --git a/src/man/Makefile.am b/src/man/Makefile.am index 695696b77..e09e7a585 100644 --- a/src/man/Makefile.am +++ b/src/man/Makefile.am @@ -82,19 +82,6 @@ update-po: cd $(srcdir) && \ $(PO4A) $(PO4A_BUILD_OPTS) --force $(PO4A_CONFIG) -# Generate translated manual pages -translate: man.stamp - if [ -z $$recursion ]; then \ - for lang in $(LINGUAS); do \ - if [ -d $$lang ]; then \ - sources=$$(ls $$lang/*.xml); \ - manpages=$$(echo $$sources | $(SED) 's/\.xml//'); \ - $(MAKE) recursion=1 man_MANS="$$manpages"; \ - fi \ - done \ - fi - - dist-hook: man.stamp if [ -f man.stamp ]; then \ cp man.stamp $(distdir); \ @@ -113,11 +100,6 @@ dist-hook: man.stamp fi -clean-local: clean-local-@USE_NLS@ -distclean-local: clean-local-@USE_NLS@ -mostlyclean-local: clean-local-@USE_NLS@ -maintainer-clean-local: clean-local-@USE_NLS@ - clean-local-no: clean-local-yes: for lang in $(LINGUAS); do \ @@ -128,6 +110,37 @@ clean-local-yes: rm -f $(man_MANS) rm -f man.stamp +else + +man.stamp: $(XML_DOC) + touch $@ + +clean-local-no: +clean-local-yes: + rm -f $(man_MANS) + rm -f man.stamp + +endif + +clean-local: clean-local-@USE_NLS@ +distclean-local: clean-local-@USE_NLS@ +mostlyclean-local: clean-local-@USE_NLS@ +maintainer-clean-local: clean-local-@USE_NLS@ + +# Generate translated manual pages +all-local: all-local-@USE_NLS@ +all-local-no: +all-local-yes: man.stamp + if [ -z $$recursion ]; then \ + for lang in $(LINGUAS); do \ + if [ -d $$lang ]; then \ + sources=$$(ls $$lang/*.xml); \ + manpages=$$(echo $$sources | $(SED) 's/\.xml//'); \ + $(MAKE) recursion=1 man_MANS="$$manpages"; \ + fi \ + done \ + fi + install-data-local: install-data-local-@USE_NLS@ install-data-local-no: install-data-local-yes: @@ -153,8 +166,3 @@ uninstall-local-yes: man_MANS="$$manpages"; \ fi \ done - -else -translate: - @echo No po4a, skipping translations -endif |