From: Alexander Barton Date: Fri, 27 Jun 2008 11:21:14 +0000 (+0200) Subject: Makefile: ignore .git/ on "dist" target, fix output of "check" target. X-Git-Tag: rel-0-1-0~2 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=pt.git;a=commitdiff_plain;h=7ec19546b7658daf3f36ffface8292d9d3580f01 Makefile: ignore .git/ on "dist" target, fix output of "check" target. --- diff --git a/Makefile b/Makefile index de40815..a777e13 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ distclean: clean clean: check: all - @echo -n "Checking \"pt\" script ... " + @echo "Checking \"pt\" script ... \c" @bin/pt --version >/dev/null 2>&1; if [ $$? -eq 0 ]; then \ echo "OK."; else echo "Failed!"; exit 1; fi @@ -35,8 +35,8 @@ dist: distclean version=`grep "VERSION=" bin/pt | cut -d'"' -f2`; \ ditto --norsrc . "/tmp/$$$$/$$name-$$version"; \ tar cvzf "$$name-$$version.tar.gz" -C "/tmp/$$$$" \ - --exclude '*.tar*' "$$name-$$version"; \ - rm -r "/tmp/$$$$" + --exclude '*.tar*' --exclude '.git' "$$name-$$version"; \ + rm -rf "/tmp/$$$$" distcheck: distclean check dist