From: Dietmar Maurer Date: Wed, 7 Dec 2011 05:19:44 +0000 (+0100) Subject: use 'mv' to make targets atomic X-Git-Url: https://git.proxmox.com/?p=pve-access-control.git;a=commitdiff_plain;h=dcfaabd7ca0afb4e157634c4179cebb1482681a1;hp=eb09b155c89d58ffd3f3ebd1c14b9e3622f027d2 use 'mv' to make targets atomic To avoid empty man page bug. --- diff --git a/Makefile b/Makefile index 7e2db08..3ff3c55 100644 --- a/Makefile +++ b/Makefile @@ -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