use 'mv' to make targets atomic

To avoid empty man page bug.
This commit is contained in:
Dietmar Maurer 2011-12-07 06:19:44 +01:00
parent eb09b155c8
commit dcfaabd7ca

View File

@ -25,10 +25,12 @@ dinstall: deb
%.1.gz: %.1.pod
rm -f $@
cat $<|pod2man -n $* -s 1 -r ${VERSION} -c "Proxmox Documentation"|gzip -c9 >$@
cat $<|pod2man -n $* -s 1 -r ${VERSION} -c "Proxmox Documentation"|gzip -c9 >$@.tmp
mv $@.tmp $@
pveum.1.pod: pveum
perl -I. ./pveum printmanpod >$@
perl -I. ./pveum printmanpod >$@.tmp
mv $@.tmp $@
.PHONY: install
install: pveum.1.pod pveum.1.gz