X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=man%2FMakefile.am;h=bfe2c2e9dd4642ebd6baaa3b7a0086f1f5850904;hb=refs%2Ftags%2Fupstream%2F2.5.1;hp=1eea354f27a3ddb7bfccddf0b9be8072a7b7783d;hpb=94c03cae686e4196a345d72452fda2a5203768ce;p=debian%2Famanda diff --git a/man/Makefile.am b/man/Makefile.am index 1eea354..bfe2c2e 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -2,12 +2,16 @@ transform = s,x,x,; +if WANT_AMPLOT AMPLOT_MAN8_PAGES = amplot.8 +endif COMMON_MAN8_PAGES = amanda.8 -COMMON_MAN5_PAGES = amanda.conf.5 +COMMON_MAN5_PAGES = amanda.conf.5 \ + amanda-client.conf.5 +#if WANT_SERVER SERVER_MAN8_PAGES = amadmin.8 \ amcheck.8 \ amcheckdb.8 \ @@ -29,7 +33,10 @@ SERVER_MAN8_PAGES = amadmin.8 \ amverifyrun.8 \ amfetchdump.8 \ amcrypt.8 \ - amaespipe.8 + amaespipe.8 \ + amcrypt-ossl.8 \ + amcrypt-ossl-asym.8 +#endif if WANT_RECOVER RECOVER_MAN8_PAGES = amrecover.8 @@ -39,26 +46,14 @@ if WANT_RESTORE RESTORE_MAN8_PAGES = amrestore.8 endif -man8_MANS = $(COMMON_MAN8_PAGES) +man8_MANS = $(COMMON_MAN8_PAGES) \ + $(AMPLOT_MAN8_PAGES) \ + $(SERVER_MAN8_PAGES) \ + $(RECOVER_MAN8_PAGES) \ + $(RESTORE_MAN8_PAGES) man5_MANS = $(COMMON_MAN5_PAGES) -if WANT_AMPLOT -man8_MANS += $(AMPLOT_MAN8_PAGES) -endif - -if WANT_SERVER -man8_MANS += $(SERVER_MAN8_PAGES) -endif - -if WANT_RECOVER -man8_MANS += $(RECOVER_MAN8_PAGES) -endif - -if WANT_RESTORE -man8_MANS += $(RESTORE_MAN8_PAGES) -endif - ALL_MAN_PAGES = $(AMPLOT_MAN8_PAGES) \ $(COMMON_MAN5_PAGES) \ $(COMMON_MAN8_PAGES) \ @@ -77,26 +72,43 @@ EXTRA_XML = xslt/expand-sambadoc.xsl \ xslt/settings.xsl \ entities/global.entities \ entities/xinclude.dtd - EXTRA_DIST = $(ALL_MAN_PAGES) $(MAN_XML) $(EXTRA_XML) -if HAVE_XSLTPROC - GEN_XML = $(ALL_MAN_PAGES:%=xml-source/%.proc.xml) MOSTLYCLEANFILES = $(GEN_XML) MAINTAINERCLEANFILES = $(ALL_MAN_PAGES) +if BUILD_MAN_PAGES +if HAVE_XSLTPROC xml-source/%.proc.xml: $(SRCMANPAGEDIR)/%.xml $(srcdir)/xslt/expand-sambadoc.xsl $(XSLTPROC) --path $(srcdir)/xslt/ --xinclude --stringparam latex.imagebasedir "$*/" --stringparam noreference 1 --output $@ $(srcdir)/xslt/expand-sambadoc.xsl $< %: xml-source/%.proc.xml $(srcdir)/xslt/man.xsl $(XSLTPROC) --path $(srcdir)/xslt/ --output $@ man.xsl $< -endif -# ^- HAVE_XSLTPROC +else # !HAVE_XSLTPROC +xml-source/%.proc.xml: $(SRCMANPAGEDIR)/%.xml $(srcdir)/xslt/expand-sambadoc.xsl + @echo WARNING: $@ can not be generated: xsltproc is not available. + +%: xml-source/%.proc.xml $(srcdir)/xslt/man.xsl + @echo WARNING: $@ can not be generated: xsltproc is not available. + +endif # HAVE_XSLTPROC + +else # !BUILD_MAN_PAGES + +xml-source/%.proc.xml: $(SRCMANPAGEDIR)/%.xml $(srcdir)/xslt/expand-sambadoc.xsl + @echo Build of $@ skipped. + +%: xml-source/%.proc.xml $(srcdir)/xslt/man.xsl + @echo Build of $@ skipped. + +endif # BUILD_MAN_PAGES + +if BUILD_MAN_PAGES install-data-hook: @list="$(man8_MANS)"; \ for p in $$list; do \ @@ -115,3 +127,10 @@ install-data-hook: chgrp $(SETUID_GROUP) $$pa; \ done +else # !BUILD_MAN_PAGES + +install: + @echo Skipping man page installation. + +endif +