aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2013-02-12 17:09:49 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-02-23 20:30:39 -0600
commit8c90042dee7cd0d7960c86b9fcfac5f1afec5784 (patch)
tree7e1a2fad4856ccb41312a1e79a53518187664eb3 /src
parent9eb06745126de85d032d2f5d65ea713065f03c3d (diff)
make BINDIR and SBINDIR available to input files
BINDIR and SBINDIR can be set independently of PREFIX and may not be set to PREFIX/bin as scripts currently assume. Note from William Hubbs: This adds @BINDIR@ and @SBINDIR@ macros to the sed commands run to convert *.in files to the executable form. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/librc/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librc/Makefile b/src/librc/Makefile
index 0b4beb26..73075608 100644
--- a/src/librc/Makefile
+++ b/src/librc/Makefile
@@ -18,6 +18,8 @@ SED_CMD= -e 's:@PREFIX@:${PREFIX}:g'
SED_CMD+= -e 's:@LIB@:${LIBNAME}:g'
SED_CMD+= -e 's:@SYSCONFDIR@:${SYSCONFDIR}:g'
SED_CMD+= -e 's:@LIBEXECDIR@:${LIBEXECDIR}:g'
+SED_CMD+= -e 's:@BINDIR@:${BINDIR}:g'
+SED_CMD+= -e 's:@SBINDIR@:${SBINDIR}:g'
_PKG_PREFIX= -e 's:.*@PKG_PREFIX@.*:\#undef RC_PKG_PREFIX:g'
ifneq (${PKG_PREFIX},)