change tar system, basic would fail as it does not include needed directories or...
[physics.git] / src / Makefile
index 7e6abee..aca5527 100644 (file)
@@ -116,15 +116,11 @@ tags: ${SRCS}
        ctags $^
 
 .PHONY: tar
-tar:
-       ${Q1}echo "tar: physics.tar.bz2"
-       ${Q2}rm -f physics.tar # prevents appending
-       ${Q2}for f in ${TARS}; do\
-               tar -C ../.. -rf physics.tar "physics/src/$$f"; done
-       ${Q2}bzip2 physics.tar
-
-.PHONY: git-tar
-git-tar:
+tar: ../physics.tar.bz2
+
+.PHONY: ../physics.tar.bz2
+../physics.tar.bz2:
+       @echo "git-archive: Warning, archives HEAD not current"
        ${Q1}echo "git-archive: ../physics.tar.bz2"
        ${Q2}cd ..; git-archive --prefix=physics/ HEAD | bzip2 > physics.tar.bz2