From: Todd C. Miller Date: Tue, 12 Oct 2010 13:36:01 +0000 (-0400) Subject: Mark ChangeLog as PHONY X-Git-Tag: SUDO_1_8_0~196 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a178a430a25c84efaa69bd9bef7ead1a9118b536;p=sudo Mark ChangeLog as PHONY Don't overwrite ChangeLog if we can't run hg --- diff --git a/Makefile.in b/Makefile.in index 13af4366b..1badcc56d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -63,7 +63,13 @@ autoconf: autoconf -I m4 ChangeLog: - (cd $(srcdir) && test -d .hg && hg log --style=changelog -b default > $@) + if test -d $(srcdir)/.hg && cd $(srcdir); then \ + if hg log --style=changelog -b default > $@.tmp; then \ + mv $@.tmp $@; \ + else \ + rm -f $@.tmp; \ + fi; \ + fi check: @echo nothing to check @@ -119,3 +125,5 @@ cleandir: distclean clobber: distclean realclean: distclean + +.PHONY: ChangeLog