From ce0e95607d04e95b0d07a11aacbaaa4dae26bfd7 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 13 Dec 2010 14:14:06 +0000 Subject: ap: initial implementation ap is a helper script to parse APKBUILD and calculate build time dependencies. --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') 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= ]" @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 -- cgit v1.2.3-70-g09d2