From: Patrik Gornicz Date: Tue, 19 Aug 2008 21:47:36 +0000 (-0400) Subject: change tar system, basic would fail as it does not include needed directories or... X-Git-Tag: v0.05~7 X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?p=physics.git;a=commitdiff_plain;h=8381f5953e33c5f60f39bf4090e7ee354d5cd047 change tar system, basic would fail as it does not include needed directories or it would include the deps as they are built first, git only seems logical --- diff --git a/src/Makefile b/src/Makefile index 7e6abee..aca5527 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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