]> arthur.barton.de Git - pt.git/commitdiff
Makefile: ignore .git/ on "dist" target, fix output of "check" target.
authorAlexander Barton <alex@barton.de>
Fri, 27 Jun 2008 11:21:14 +0000 (13:21 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 27 Jun 2008 11:21:14 +0000 (13:21 +0200)
Makefile

index de408150478e4535487994d1fff1df7c81695d13..a777e13bfdb0e188cad37feb5065f02562f6ec60 100644 (file)
--- 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