summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-10-24 20:37:20 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-10-24 20:37:20 +0000
commitf150027100d2488b318af935979c9b32ff420c71 (patch)
tree13d4bfce4313b5e0faba6d32c02a423cc8702150 /Makefile
parentc50ab80bfaf00fbc974e3847b613d0ce2b6e1549 (diff)
downloadabuild-f150027100d2488b318af935979c9b32ff420c71.tar.gz
abuild-f150027100d2488b318af935979c9b32ff420c71.tar.bz2
abuild-f150027100d2488b318af935979c9b32ff420c71.tar.xz
abuild-f150027100d2488b318af935979c9b32ff420c71.zip
abuild: fix so APKBUILD env var works properly
We also make sure we source the APKBUILD when we are in the directory holding the APKBUILD file. Some of the packages sources others with relative references. (for example kernel 3rd party packages)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 43e5e57..1c6c539 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,7 @@ else
FULL_VERSION := $(VERSION)
endif
+CHMOD := chmod
SED := sed
TAR := tar
@@ -39,9 +40,11 @@ SSL_LIBS := $(shell pkg-config --libs openssl)
.SUFFIXES: .sh.in .in
.sh.in.sh:
${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@
+ ${CHMOD} +x $@
.in:
${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@
+ ${CHMOD} +x $@
P=$(PACKAGE)-$(VERSION)