-# also update debian/changelog
-DOCRELEASE=5.0
+DOCRELEASE=@RELEASE@
DGDIR?=/usr/share/pmg-doc-generator
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 $@
$(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 $@
%.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
.PHONY: cleanup-docgen
cleanup-docgen:
rm -f *.xml.tmp *.1 *.5 *.8 *.adoc docinfo.xml
+