diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-29 09:06:43 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-29 09:06:43 +0000 |
commit | 21cd6680eee14cb6ab89ff95d8ca2413833800c7 (patch) | |
tree | fc0888eb5323e41fa09a05d71ce11bb150de7f9e /Makefile | |
parent | 81f8737a6aa13c1d6944f061a1f21e5549ff4003 (diff) | |
download | abuild-21cd6680eee14cb6ab89ff95d8ca2413833800c7.tar.gz abuild-21cd6680eee14cb6ab89ff95d8ca2413833800c7.tar.bz2 abuild-21cd6680eee14cb6ab89ff95d8ca2413833800c7.tar.xz abuild-21cd6680eee14cb6ab89ff95d8ca2413833800c7.zip |
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-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |