summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-01-15 15:48:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-15 15:48:16 +0000
commit5baad961c6ad20863eceea3fc923f5a9a9c5ee6b (patch)
tree9e42546e63be46997fe012f8e4a273210aea99c5 /Makefile
parent4a54e80e3bdd8d97987b263667a25fdbcec7ace8 (diff)
downloadabuild-5baad961c6ad20863eceea3fc923f5a9a9c5ee6b.tar.gz
abuild-5baad961c6ad20863eceea3fc923f5a9a9c5ee6b.tar.bz2
abuild-5baad961c6ad20863eceea3fc923f5a9a9c5ee6b.tar.xz
abuild-5baad961c6ad20863eceea3fc923f5a9a9c5ee6b.zip
devbuild: new helper script, fix makefile
This script helps developers who works on the alpine subprojects (i.e apk-tools, alpine-baselayout etc) to build a development alpine iso. a new alpine iso using the un-committed local sub
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 055b1ec..cc41a47 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
PACKAGE=abuild
VERSION:=$(shell awk -F= '$$1 == "abuild_ver" {print $$2}' abuild)
-DISTFILES=Makefile abuild abuild.conf APKBUILD.proto buildrepo
+USR_BIN_FILES=abuild devbuild mkalpine buildrepo
+DISTFILES=$(USR_BIN_FILES) Makefile abuild.conf APKBUILD.proto
+
prefix ?= /usr
sysconfdir ?= /etc
@@ -14,23 +16,25 @@ help:
@echo "usage: make install [ DESTDIR=<path> ]"
@echo " make dist"
-install: abuild abuild.conf APKBUILD.proto functions.sh
+install: $(USR_BIN_FILES) abuild.conf APKBUILD.proto functions.sh
mkdir -p $(DESTDIR)/$(prefix)/bin $(DESTDIR)/$(sysconfdir) \
$(DESTDIR)/$(datadir)
- cp abuild buildrepo $(DESTDIR)/$(prefix)/bin/
+ for i in $(USR_BIN_FILES); do\
+ install -m 755 $$i $(DESTDIR)/$(prefix)/bin/$$i;\
+ done
if [ -z "$(DESTDIR)" ] && [ ! -f "/$(sysconfdir)"/abuild.conf ]; then\
cp abuild.conf $(DESTDIR)/$(sysconfdir)/; \
fi
cp APKBUILD.proto $(DESTDIR)/$(prefix)/share/abuild
cp functions.sh $(DESTDIR)/$(datadir)/
-dist: $(P).tar.gz
+dist: $(P).tar.bz2
-$(P).tar.gz: $(DISTFILES)
+$(P).tar.bz2: $(DISTFILES)
rm -rf $(P)
mkdir -p $(P)
cp $(DISTFILES) $(P)/
- tar -czf $@ $(P)
+ tar -cjf $@ $(P)
rm -rf $(P)
.PHONY: install dist