summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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