vars.mk: change default PREFIX to /usr/local and conditionalize

SHAREDIR based on its value.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20090821104759-q010qay9i2dtoo3y
This commit is contained in:
Juan RP 2009-08-21 12:47:59 +02:00
parent 8d4cc875ea
commit f6ac35e110

View File

@ -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