]> git.proxmox.com Git - pmg-docs.git/blobdiff - pmg-doc-generator.mk.in
installation: rephrase section "Other Repository Sources"
[pmg-docs.git] / pmg-doc-generator.mk.in
index 0cd846527b29e837ea0bff15e3680e7e7bf28836..852735b5ebbcab5e12f4d6a487400171a1086a08 100644 (file)
@@ -1,5 +1,4 @@
-# also update debian/changelog
-DOCRELEASE=5.0
+DOCRELEASE=@RELEASE@
 
 DGDIR?=/usr/share/pmg-doc-generator
 
@@ -14,6 +13,28 @@ PMG_COMMON_DOC_SOURCES=                 \
 
 all:
 
+pmgsh.1-synopsis.adoc:
+       @echo 'Interactive session:' >$@.tmp
+       @echo '' >>$@.tmp
+       @echo '*pmgsh*' >>$@.tmp
+       @echo '' >>$@.tmp
+       @echo 'Directly call API functions:' >>$@.tmp
+       @echo '' >>$@.tmp
+       @echo '*pmgsh* `(get|set|create|help)` `<path>` `[OPTIONS]`' >>$@.tmp
+       mv $@.tmp $@
+
+pmg-smtp-filter.8-synopsis.adoc:
+       @echo 'Please use systemd tools to manage this service.' >$@.tmp
+       @echo '' >>$@.tmp
+       @echo '*systemctl* `(start|stop|restart|reload|status)` `pmg-smtp-filter`' >>$@.tmp
+       mv $@.tmp $@
+
+pmgpolicy.8-synopsis.adoc:
+       @echo 'Please use systemd tools to manage this service.' >$@.tmp
+       @echo '' >>$@.tmp
+       @echo '*systemctl* `(start|stop|restart|reload|status)` `pmgpolicy`' >>$@.tmp
+       mv $@.tmp $@
+
 docinfo.xml:
        cp ${DGDIR}/$@ $@.tmp
        mv $@.tmp $@
@@ -22,6 +43,10 @@ docinfo.xml:
        $(PERL_DOC_ENV) perl -I. ${DGDIR}/gen-$*-opts.pl >$@.tmp
        mv $@.tmp $@
 
+pmg.%-conf-opts.adoc: ${DGDIR}/gen-pmg.conf.5-opts.pl
+       $(PERL_DOC_ENV) perl -I. ${DGDIR}/gen-pmg.conf.5-opts.pl $* >$@.tmp
+       mv $@.tmp $@
+
 %.adoc: ${DGDIR}/gen-%-adoc.pl
        $(PERL_DOC_ENV) perl -I. ${DGDIR}/gen-$*-adoc.pl >$@.tmp
        mv $@.tmp $@
@@ -49,21 +74,18 @@ chapter-%.html: %.adoc ${PMG_COMMON_DOC_SOURCES}
 
 %.1: %.adoc %.1-synopsis.adoc ${PMG_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PMG} compile-man -o $@ $*.adoc
-       test -n "$${NOVIEW}" || man -l $@
 
 %.1.html: %.adoc %.1-synopsis.adoc ${PMG_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PMG} compile-man-html -o $@ $*.adoc
 
 %.8: %.adoc %.8-synopsis.adoc ${PMG_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PMG} compile-man -o $@ $*.adoc
-       test -n "$${NOVIEW}" || man -l $@
 
 %.8.html: %.adoc %.8-synopsis.adoc ${PMG_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PMG} compile-man-html -o $@ $*.adoc
 
 %.5: %.adoc %.5-opts.adoc ${PMG_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PMG} compile-man -o $@ $*.adoc
-       test -n "$${NOVIEW}" || man -l $@
 
 %.5.html: %.adoc %.5-opts.adoc ${PMG_COMMON_DOC_SOURCES}
        ${ASCIIDOC_PMG} compile-man-html -o $@ $*.adoc
@@ -75,3 +97,4 @@ chapter-%.html: %.adoc ${PMG_COMMON_DOC_SOURCES}
 .PHONY: cleanup-docgen
 cleanup-docgen:
        rm -f *.xml.tmp *.1 *.5 *.8 *.adoc docinfo.xml
+