summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-12-13 14:14:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-12-13 14:14:06 +0000
commitce0e95607d04e95b0d07a11aacbaaa4dae26bfd7 (patch)
treeb4be1b4af61426a7a7090dda0afe850bad42a4a8 /Makefile
parenta111620bc8b8bbd72295c899acf5a7dca87e210c (diff)
downloadabuild-ce0e95607d04e95b0d07a11aacbaaa4dae26bfd7.tar.bz2
abuild-ce0e95607d04e95b0d07a11aacbaaa4dae26bfd7.tar.xz
ap: initial implementation
ap is a helper script to parse APKBUILD and calculate build time dependencies.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1f8e11c..52d824d 100644
--- a/Makefile
+++ b/Makefile
@@ -7,8 +7,11 @@ sysconfdir ?= /etc
datadir ?= $(prefix)/share/$(PACKAGE)
abuildrepo ?= ~/.cache/apks
+LUA_VERSION = 5.1
+LUA_SHAREDIR ?= $(prefix)/share/lua/$(LUA_VERSION)/
+
SCRIPTS := abuild devbuild buildrepo abuild-keygen \
- abuild-sign newapkbuild abump
+ abuild-sign newapkbuild abump ap
USR_BIN_FILES := $(SCRIPTS) abuild-tar
SAMPLES := sample.APKBUILD sample.initd sample.confd \
sample.pre-install sample.post-install
@@ -65,7 +68,7 @@ help:
@echo "usage: make install [ DESTDIR=<path> ]"
@echo " make dist"
-install: $(USR_BIN_FILES) $(SAMPLES) abuild.conf functions.sh
+install: $(USR_BIN_FILES) $(SAMPLES) abuild.conf functions.sh aports.lua
mkdir -p $(DESTDIR)/$(prefix)/bin $(DESTDIR)/$(sysconfdir) \
$(DESTDIR)/$(datadir)
for i in $(USR_BIN_FILES); do\
@@ -76,6 +79,8 @@ install: $(USR_BIN_FILES) $(SAMPLES) abuild.conf functions.sh
fi
cp $(SAMPLES) $(DESTDIR)/$(prefix)/share/abuild
cp functions.sh $(DESTDIR)/$(datadir)/
+ mkdir -p $(DESTDIR)$(LUA_SHAREDIR)
+ cp aports.lua $(DESTDIR)$(LUA_SHAREDIR)/
dist: $(P).tar.bz2