summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-02-20 10:15:22 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-02-20 10:15:22 +0000
commitaa24561db6ea4e22021013e7ce57583c41415103 (patch)
tree71eaaf93cdc201ad2d9639f0bdfa4abdb37d90f6
parentebe8986cc8eaa66140653a1e61a2475addc617c6 (diff)
downloadalpine-conf-aa24561db6ea4e22021013e7ce57583c41415103.zip
Makefile: default prefix is /usr. added a SHARE_DIR variable
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a17e55b..8a3d1fe 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ P=alpine-conf
PV=$(P)-$(V)
APKF=$(PV).apk
TARGZ=$(PV).tar.gz
-PREFIX=/usr/local
+PREFIX?=/usr
TMP=$(PV)
LIB_FILES=libalpine.sh
@@ -30,6 +30,7 @@ DIST_FILES=$(LIB_FILES) $(SBIN_FILES) $(ETC_LBU_FILES) $(EXTRA_DIST)
DESC="Alpine configuration scripts"
WWW="http://alpinelinux.org/alpine-conf"
+SHARE_DIR := /usr/share/lbu
TAR=tar
DB=$(TMP)/var/db/apk/$(PV)
@@ -61,8 +62,8 @@ $(TARGZ): $(DIST_FILES)
install:
install -m 755 -d $(DESTDIR)/$(PREFIX)/sbin
install -m 755 $(SBIN_FILES) $(DESTDIR)/$(PREFIX)/sbin
- install -m 755 -d $(DESTDIR)/$(PREFIX)/lib
- install -m 755 $(LIB_FILES) $(DESTDIR)/$(PREFIX)/lib
+ install -m 755 -d $(DESTDIR)/$(PREFIX)/$(SHARE_DIR)
+ install -m 755 $(LIB_FILES) $(DESTDIR)/$(PREFIX)/$(SHARE_DIR)
install -m 755 -d $(DESTDIR)/etc/lbu
install -m 755 $(ETC_LBU_FILES) $(DESTDIR)/etc/lbu