summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2008-11-08 19:28:59 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2008-11-08 19:28:59 (GMT)
commit6362f71542202278547e66afa73c978259a80a56 (patch)
treed5c03980420fa78bb9efdfd62c58f750077d7b13 /Makefile
parentd391f8869a6592a36da7367ab481a44df8da299d (diff)
downloadmxe-6362f71542202278547e66afa73c978259a80a56.zip
mxe-6362f71542202278547e66afa73c978259a80a56.tar.gz
mxe-6362f71542202278547e66afa73c978259a80a56.tar.bz2
bugfix: support the .tgz archive extension in addition to .tar.gz
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4705c3c..ada99f0 100644
--- a/Makefile
+++ b/Makefile
@@ -16,16 +16,18 @@ PKG_RULES := $(patsubst src/%.mk,%,$(wildcard src/*.mk))
include src/*.mk
CHECK_ARCHIVE = \
+ $(if $(filter %.tgz, $(1)),tar tfz '$(1)' >/dev/null 2>&1, \
$(if $(filter %.tar.gz, $(1)),tar tfz '$(1)' >/dev/null 2>&1, \
$(if $(filter %.tar.bz2,$(1)),tar tfj '$(1)' >/dev/null 2>&1, \
$(if $(filter %.zip, $(1)),unzip -t '$(1)' >/dev/null 2>&1, \
- $(error Unknown archive format: $(1)))))
+ $(error Unknown archive format: $(1))))))
UNPACK_ARCHIVE = \
+ $(if $(filter %.tgz, $(1)),tar xvzf '$(1)', \
$(if $(filter %.tar.gz, $(1)),tar xvzf '$(1)', \
$(if $(filter %.tar.bz2,$(1)),tar xvjf '$(1)', \
$(if $(filter %.zip, $(1)),unzip '$(1)', \
- $(error Unknown archive format: $(1)))))
+ $(error Unknown archive format: $(1))))))
DOWNLOAD = \
$(if $(2),wget -t 3 -c '$(1)' || wget -c '$(2)',wget -c '$(1)')