summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-01-29 09:06:43 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-29 09:06:43 +0000
commit21cd6680eee14cb6ab89ff95d8ca2413833800c7 (patch)
treefc0888eb5323e41fa09a05d71ce11bb150de7f9e /Makefile
parent81f8737a6aa13c1d6944f061a1f21e5549ff4003 (diff)
downloadalpine-iso-21cd6680eee14cb6ab89ff95d8ca2413833800c7.tar.bz2
alpine-iso-21cd6680eee14cb6ab89ff95d8ca2413833800c7.tar.xz
abuild: support for creation of new APKBUILD from template
abuild [-c] -n PKGNAME[-PKGVER] creates a directory with new APKBUILD. If -c is specified will sample init.d, conf.d and install script be copied as well.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index cba57fa..46877ab 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,8 @@
PACKAGE=abuild
VERSION:=$(shell awk -F= '$$1 == "abuild_ver" {print $$2}' abuild)
USR_BIN_FILES=abuild devbuild mkalpine buildrepo
-DISTFILES=$(USR_BIN_FILES) Makefile abuild.conf APKBUILD.proto
+SAMPLES=sample.APKBUILD sample.initd sample.confd sample.install
+DISTFILES=$(USR_BIN_FILES) $(SAMPLES) Makefile abuild.conf \
prefix ?= /usr
@@ -16,7 +17,7 @@ help:
@echo "usage: make install [ DESTDIR=<path> ]"
@echo " make dist"
-install: $(USR_BIN_FILES) abuild.conf APKBUILD.proto functions.sh
+install: $(USR_BIN_FILES) $(SAMPLES) abuild.conf functions.sh
mkdir -p $(DESTDIR)/$(prefix)/bin $(DESTDIR)/$(sysconfdir) \
$(DESTDIR)/$(datadir)
for i in $(USR_BIN_FILES); do\
@@ -25,7 +26,7 @@ install: $(USR_BIN_FILES) abuild.conf APKBUILD.proto functions.sh
if [ -n "$(DESTDIR)" ] || [ ! -f "/$(sysconfdir)"/abuild.conf ]; then\
cp abuild.conf $(DESTDIR)/$(sysconfdir)/; \
fi
- cp APKBUILD.proto $(DESTDIR)/$(prefix)/share/abuild
+ cp $(SAMPLES) $(DESTDIR)/$(prefix)/share/abuild
cp functions.sh $(DESTDIR)/$(datadir)/
dist: $(P).tar.bz2