]> granicus.if.org Git - shadow/commitdiff
* man/generate_translations.mak, man/generate_mans.mak: Fix
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 20 Mar 2010 10:25:34 +0000 (10:25 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 20 Mar 2010 10:25:34 +0000 (10:25 +0000)
distcheck. All manpages generation code shall be enclosed in
ENABLE_REGENERATE_MAN conditions.

ChangeLog
man/generate_mans.mak
man/generate_translations.mak

index 0e44b4379fae8196ae9b0befb0b10cac1fb58f96..3166e90434cea86f5802ff6c6054c3c9dbb94eb7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-03-20  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * man/generate_translations.mak, man/generate_mans.mak: Fix
+       distcheck. All manpages generation code shall be enclosed in
+       ENABLE_REGENERATE_MAN conditions.
+
 2010-03-20  Nicolas François  <nicolas.francois@centraliens.net>
 
        * man/useradd.8.xml: Do not document the features which are not
index 82fcfcdb25d4f8bc1bdc07cbbcaff2dcb85aaa6a..8854f5dcd2f7da4e120aaad9f0c92a6f8f72ca7f 100644 (file)
@@ -20,14 +20,15 @@ else
 SHA_CRYPT_COND=no_sha_crypt
 endif
 
+if ENABLE_REGENERATE_MAN
 %.xml-config: %.xml Makefile
        sed -e 's/^<!-- SHADOW-CONFIG-HERE -->/<!ENTITY % config SYSTEM "config.xml">%config;/' $< > $@
 
 %: %.xml-config Makefile config.xml
-if ENABLE_REGENERATE_MAN
        $(XSLTPROC) --stringparam profile.condition "$(PAM_COND);$(SHADOWGRP_COND);$(TCB_COND);$(SHA_CRYPT_COND)" \
                    -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/profile-docbook.xsl $<
 else
+$(man_MANS):
        @echo you need to run configure with --enable-man to generate man pages
        @false
 endif
index 7344d8dd96ee70d1c24627b50d3e721445395eda..ab673694b4960c961c22257d8a7794b76d00ebf5 100644 (file)
@@ -1,18 +1,20 @@
 LANG=$(notdir $(CURDIR))
 
-%.xml: ../%.xml ../po/$(LANG).po
 if ENABLE_REGENERATE_MAN
+config.xml: ../config.xml.in
+       $(MAKE) -C .. config.xml
+       cp ../config.xml $@
+
+%.xml: ../%.xml ../po/$(LANG).po
        xml2po --expand-all-entities -l $(LANG) -p ../po/$(LANG).po -o $@ ../$@
        sed -i 's:\(^<refentry .*\)>:\1 lang="$(LANG)">:' $@
+
+include ../generate_mans.mak
+
 else
+$(man_MANS):
        @echo you need to run configure with --enable-man to generate man pages
        @false
 endif
 
-config.xml: ../config.xml.in
-       $(MAKE) -C .. config.xml
-       cp ../config.xml $@
-
-include ../generate_mans.mak
-
 CLEANFILES = .xml2po.mo $(EXTRA_DIST) $(addsuffix .xml,$(EXTRA_DIST))