summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-05-30 19:16:54 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-05-30 19:16:54 -0400
commitd150cfc71f2c0d05fd70a7f88c41990c5254aa70 (patch)
tree91ca46598747f01d1ad37a9162c35fb66747ca75 /Makefile
parentaa06aeb64ddb8dcae968768e8e1d59f02edb7964 (diff)
Makefile: bump timestamps when extracting a tarball
Also, just use 'tar', since both libarchive (BSD) tar and GNU tar support the flags I use.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 68957c4..1f3cf8e 100644
--- a/Makefile
+++ b/Makefile
@@ -69,10 +69,11 @@ build/extract/svn/%: build/download/svn/%
build/extract/tar/%: # magic foreach loop
basedir='build/extract/$(shell utils/file2base 'tar/$*')' && \
+ if
rm -rf "$$basedir" && \
{ \
mkdir -p "$$basedir" && \
- ( cd "$$basedir" && bsdtar --strip-components 1 -xf '$(top)/$<' ); \
+ ( cd "$$basedir" && tar -m --strip-components 1 -xf '$(top)/$<' ); \
} || rm -rf "$$basedir"
$(foreach package,$(packages),$(if $(filter-out svn|%,$($(package))),$(eval \