rm -f pve-firewall-macros.adoc pct-network-opts.adoc pct-mountpoint-opts.adoc
make all
-clean:
- rm -rf *.html *.pdf *.epub *.tmp *.1 *.5 *.8 *.deb *.changes build api-viewer/apidoc.js chapter-*.html chapter-*-plain.html chapter-*.html pve-admin-guide.chunked
+clean:
+ rm -rf *.tmp.xml *.html *.pdf *.epub *.tmp *.1 *.5 *.8 *.deb *.changes build api-viewer/apidoc.js chapter-*.html chapter-*-plain.html chapter-*.html pve-admin-guide.chunked
find . -name '*~' -exec rm {} ';'
A2MAN_COMMON=asciidoc -dmanpage -bdocbook -a docinfo1
define A2MAN1
-${A2MAN_COMMON} -a "manvolnum=1" $1.adoc
-xmlto -v man $1.xml
+${A2MAN_COMMON} -a "manvolnum=1" -o $1.tmp.xml $1.adoc
+xmlto -v man $1.tmp.xml
+@rm -f $1.tmp.xml
endef
define A2MAN5
-${A2MAN_COMMON} -a "manvolnum=5" $1.adoc
-xmlto -v man $1.xml
+${A2MAN_COMMON} -a "manvolnum=5" -o $1.tmp.xml $1.adoc
+xmlto -v man $1.tmp.xml
+@rm -f $1.tmp.xml
endef
define A2MAN8
-${A2MAN_COMMON} -a "manvolnum=8" $1.adoc
-xmlto -v man $1.xml
+${A2MAN_COMMON} -a "manvolnum=8" -o $1.tmp.xml $1.adoc
+xmlto -v man $1.tmp.xml
+@rm -f $1.tmp.xml
endef
pve-firewall.8: ${PVE_FIREWALL_MAN8_SOURCES}
.PHONY: cleanup-docgen
cleanup-docgen:
- rm -f *.1 *.5 *.8 *.adoc attributes.txt docinfo.xml
+ rm -f *.tmp.xml *.1 *.5 *.8 *.adoc attributes.txt docinfo.xml