From a135d0d93b6ff1aebd0064b4b2afbc7e0313b1fd Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sat, 1 Mar 2008 22:12:33 +0000 Subject: Fix installing into PREFIX. --- mk/sys.mk | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'mk') diff --git a/mk/sys.mk b/mk/sys.mk index e3111e37..2e62b652 100644 --- a/mk/sys.mk +++ b/mk/sys.mk @@ -7,7 +7,10 @@ INSTALL?= install RANLIB?= ranlib SH= /bin/sh -PREFIX= +PREFIX?= +_UPREFIX_SH= case "${PREFIX}" in "") echo /usr;; *) echo "${PREFIX}";; esac +_UPREFIX!= ${_UPREFIX_SH} +UPREFIX= ${_UPREFIX}$(shell ${_UPREFIX_SH}) PKG_PREFIX= /usr/local PICFLAG?= -fPIC @@ -15,18 +18,18 @@ PICFLAG?= -fPIC BINDIR?= ${PREFIX}/sbin BINMODE?= 0755 -INCDIR?= ${PREFIX}/usr/include +INCDIR?= ${UPREFIX}/include INCMODE?= 0444 LIBNAME?= lib -LIBDIR?= ${PREFIX}/usr/${LIBNAME} +LIBDIR?= ${UPREFIX}/${LIBNAME} LIBMODE?= 0444 SHLIBDIR?= ${PREFIX}/${LIBNAME} -MANDIR?= ${PREFIX}/usr/share/man/man +MANDIR?= ${UPREFIX}/share/man/man MANMODE?= 0444 -DOCDIR?= ${PREFIX}/usr/share/doc +DOCDIR?= ${UPREFIX}/share/doc DOCMODE?= 0644 CONFMODE?= 0644 -- cgit v1.2.3