From f150027100d2488b318af935979c9b32ff420c71 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sat, 24 Oct 2009 20:37:20 +0000 Subject: 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) --- Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile') 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) -- cgit v1.2.3-70-g09d2