From 863d4c2cbdf0ecbba20a0154cec228cc0ae7c980 Mon Sep 17 00:00:00 2001 From: Kim Holviala Date: Sat, 25 Jan 2014 14:45:00 +0200 Subject: [PATCH] Don't update ChangeLog unless the source tree is a git repo --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index dbcd3bc..b54404f 100644 --- a/Makefile +++ b/Makefile @@ -61,9 +61,11 @@ deb: ChangeLog dpkg-buildpackage -rfakeroot -uc -us ChangeLog: - ./git2changelog > .ChangeLog - sed -ne '/2012-12-02/,$$p' ChangeLog >> .ChangeLog - mv .ChangeLog ChangeLog + if [ -d .git ]; then \ + (./git2changelog > .ChangeLog; \ + sed -ne '/2012-12-02/,$$p' ChangeLog >> .ChangeLog; \ + mv .ChangeLog ChangeLog); \ + else true; fi .PHONY: ChangeLog