[13/14] batmand: Introduce PREFIX as standard installation prefix

Message ID 1305983442-1607-13-git-send-email-sven@narfation.org (mailing list archive)
State Accepted, archived
Commit b226dcaa1c3dc7a70beff6df766c4e8d20c7d218
Headers

Commit Message

Sven Eckelmann May 21, 2011, 1:10 p.m. UTC
  cmake and configure (generated by autotools) use a prefix configuration
which is by default /usr/local to define to which all other paths are
relative to. SBINDIR is then defined as $PREFIX/sbin but can also be
redefined.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
This patch depends on other patches submitted earlier:
 - batmand: Fix FTBFS on second build attempt
 - batmand: Remove obsolete creation of source packages
 - batmand: Remove subversion/svk revision information
 - batmand: Use nproc to get number of available processors

 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
  

Patch

diff --git a/Makefile b/Makefile
index 4f64373..21a379c 100755
--- a/Makefile
+++ b/Makefile
@@ -76,7 +76,8 @@  COMPILE.c = $(Q_CC)$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
 LINK.o = $(Q_LD)$(CC) $(LDFLAGS) $(TARGET_ARCH)
 
 # standard install paths
-SBINDIR = /usr/sbin
+PREFIX = /usr/local
+SBINDIR = $(PREFIX)/sbin
 
 # try to generate revision
 REVISION = $(shell if [ -d .git ]; then echo $$(git describe --always --dirty 2> /dev/null || echo "[unknown]"); fi)