9eb0674512
BINDIR was pointing to PREFIX/sbin which was confusing and inconsistent with src/rc/Makefile. Add SBINDIR and redefine BINDIR appropriately. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
58 lines
1.1 KiB
Makefile
58 lines
1.1 KiB
Makefile
# Generic system definitions
|
|
# Copyright (c) 2008 Roy Marples <roy@marples.name>
|
|
# Released under the 2-clause BSD license.
|
|
|
|
AR?= ar
|
|
CP?= cp
|
|
ECHO?= echo
|
|
INSTALL?= install
|
|
RANLIB?= ranlib
|
|
SED?= sed
|
|
SH= /bin/sh
|
|
|
|
PREFIX?=
|
|
ifeq (${PREFIX},)
|
|
UPREFIX= /usr
|
|
else
|
|
UPREFIX= ${PREFIX}
|
|
ifeq (${MKPREFIX},yes)
|
|
UPREFIX= ${PREFIX}/usr
|
|
endif
|
|
endif
|
|
LOCAL_PREFIX= /usr/local
|
|
|
|
PICFLAG?= -fPIC
|
|
|
|
SYSCONFDIR?= ${PREFIX}/etc
|
|
INITDIR?= ${SYSCONFDIR}/init.d
|
|
CONFDIR?= ${SYSCONFDIR}/conf.d
|
|
LOCALDIR?= ${SYSCONFDIR}/local.d
|
|
SYSCTLDIR?= ${SYSCONFDIR}/sysctl.d
|
|
|
|
BINDIR?= ${PREFIX}/bin
|
|
BINMODE?= 0755
|
|
|
|
SBINDIR?= ${PREFIX}/sbin
|
|
SBINMODE?= 0755
|
|
|
|
INCDIR?= ${UPREFIX}/include
|
|
INCMODE?= 0444
|
|
|
|
_LIBNAME_SH= case `readlink /lib` in /lib64|lib64) echo "lib64";; *) echo "lib";; esac
|
|
_LIBNAME:= $(shell ${_LIBNAME_SH})
|
|
LIBNAME?= ${_LIBNAME}
|
|
LIBDIR?= ${UPREFIX}/${LIBNAME}
|
|
LIBMODE?= 0444
|
|
SHLIBDIR?= ${PREFIX}/${LIBNAME}
|
|
|
|
LIBEXECDIR?= ${PREFIX}/libexec/rc
|
|
|
|
MANPREFIX?= ${UPREFIX}/share
|
|
MANDIR?= ${MANPREFIX}/man
|
|
MANMODE?= 0444
|
|
|
|
DOCDIR?= ${UPREFIX}/share/doc
|
|
DOCMODE?= 0644
|
|
|
|
CONFMODE?= 0644
|