From 8381f5953e33c5f60f39bf4090e7ee354d5cd047 Mon Sep 17 00:00:00 2001 From: Patrik Gornicz Date: Tue, 19 Aug 2008 17:47:36 -0400 Subject: [PATCH] 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 --- src/Makefile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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 -- 2.10.2