summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-01-03 10:05:12 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-03 10:05:12 +0000
commite48c520d54ce487c69105009be0408c9bcf0d6b4 (patch)
tree902611b534f37b870575a3ae767228f14c4ae4c4 /Makefile
parent395a795126bcf0a683420db47a9afc0d672fe8ff (diff)
downloadalpine-iso-e48c520d54ce487c69105009be0408c9bcf0d6b4.tar.bz2
alpine-iso-e48c520d54ce487c69105009be0408c9bcf0d6b4.tar.xz
abuild: move functions to a shared lib
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d5da5a0..af8eb01 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ DISTFILES=Makefile abuild abuild.conf APKBUILD.proto
prefix ?= /usr
sysconfdir ?= /etc
+datadir ?= $(prefix)/share/$(PACKAGE)
P=$(PACKAGE)-$(VERSION)
@@ -13,12 +14,13 @@ help:
@echo "usage: make install [ DESTDIR=<path> ]"
@echo " make dist"
-install: abuild abuild.conf APKBUILD.proto
+install: abuild abuild.conf APKBUILD.proto functions.sh
mkdir -p $(DESTDIR)/$(prefix)/bin $(DESTDIR)/$(sysconfdir) \
- $(DESTDIR)/$(prefix)/share/abuild
+ $(DESTDIR)/$(datadir)
cp abuild $(DESTDIR)/$(prefix)/bin/
cp abuild.conf $(DESTDIR)/$(sysconfdir)/
cp APKBUILD.proto $(DESTDIR)/$(prefix)/share/abuild
+ cp functions.sh $(DESTDIR)/$(datadir)/
dist: $(P).tar.gz