aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2016-03-24 11:11:53 +0100
committerChristian Hesse <mail@eworm.de>2016-03-24 11:11:53 +0100
commitb5e26b7d5b52ba751576f3cea097a847cad0b824 (patch)
treeaf7bc0060efff46e92d26fccfce86cdfdb2941c3 /GNUmakefile
parent81b7c020f2143768a0b7579b967b2d262f5d2ed3 (diff)
downloadvis-b5e26b7d5b52ba751576f3cea097a847cad0b824.tar.gz
vis-b5e26b7d5b52ba751576f3cea097a847cad0b824.tar.xz
handle patch as usual source
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 3eb33d1..612dbe0 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -100,7 +100,7 @@ dependency/build/libtermkey-install: dependency/build/libtermkey-build
$(MAKE) -C $(dir $<)/$(LIBTERMKEY) PREFIX=$(DEPS_PREFIX) install-inc install-lib
touch $@
-dependency/sources/lua-%: | dependency/sources
+dependency/sources/lua-%.tar.gz: | dependency/sources
wget -c -O $@.part http://www.lua.org/ftp/$(LIBLUA).tar.gz
mv $@.part $@
[ -z $(LIBLUA_SHA1) ] || (echo '$(LIBLUA_SHA1) $@' | sha1sum -c)
@@ -109,9 +109,13 @@ dependency/build/liblua-extract: dependency/sources/$(LIBLUA).tar.gz dependency/
tar xzf $< -C $(dir $@)
touch $@
-dependency/build/liblua-patch: dependency/build/liblua-extract
- cd $(dir $<) && ([ -e $(LIBLUA)-lpeg.patch ] || wget http://www.brain-dump.org/projects/vis/$(LIBLUA)-lpeg.patch)
- cd $(dir $<)/$(LIBLUA) && patch -p1 < ../$(LIBLUA)-lpeg.patch
+dependency/sources/lua-%-lpeg.patch: | dependency/sources
+ wget -c -O $@.part http://www.brain-dump.org/projects/vis/$(LIBLUA)-lpeg.patch
+ mv $@.part $@
+ [ -z $(LIBLUA_LPEG_SHA1) ] || (echo '$(LIBLUA_LPEG_SHA1) $@' | sha1sum -c)
+
+dependency/build/liblua-patch: dependency/build/liblua-extract dependency/sources/$(LIBLUA)-lpeg.patch
+ cd $(dir $<)/$(LIBLUA) && patch -p1 < ../../sources/$(LIBLUA)-lpeg.patch
touch $@
dependency/build/liblua-build: dependency/build/liblua-patch dependency/build/liblpeg-install