5
0
mirror of git://git.proxmox.com/git/pve-docs.git synced 2025-03-19 18:50:06 +03:00

correctly remove temporary xml files

This commit is contained in:
Dietmar Maurer 2016-05-25 07:35:25 +02:00
parent ceb4ea5b61
commit bca311e4dc
2 changed files with 12 additions and 9 deletions

View File

@ -268,6 +268,6 @@ update: clean
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 {} ';'

View File

@ -174,18 +174,21 @@ endif
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}
@ -276,4 +279,4 @@ datacenter.cfg.5: ${DATACENTER_CONF_MAN5_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