From f6ac35e1105043d5498df9d0939d4b5395ebbd58 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 21 Aug 2009 12:47:59 +0200 Subject: [PATCH] vars.mk: change default PREFIX to /usr/local and conditionalize SHAREDIR based on its value. --HG-- extra : convert_revision : xtraeme%40gmail.com-20090821104759-q010qay9i2dtoo3y --- vars.mk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vars.mk b/vars.mk index ca114c6e..c7b15124 100644 --- a/vars.mk +++ b/vars.mk @@ -1,9 +1,14 @@ # Common variables. -PREFIX ?= +PREFIX ?= /usr/local SBINDIR ?= $(DESTDIR)$(PREFIX)/sbin LIBDIR ?= $(DESTDIR)$(PREFIX)/lib -SHAREDIR ?= $(PREFIX)/usr/share/xbps/shutils +ifeq ($(PREFIX),/) +else ifeq ($(PREFIX),) +SHAREDIR ?= /usr/share/xbps/shutils +else +SHAREDIR ?= $(PREFIX)/share/xbps/shutils +endif ETCDIR ?= $(PREFIX)/etc TOPDIR ?= .. INSTALL_STRIPPED ?= -s