[13/14] batctl: Introduce PREFIX as standard installation prefix
Commit Message
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>
---
Makefile | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Comments
On Saturday 21 May 2011 14:28:17 Sven Eckelmann wrote:
> 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.
Applied in revision 9ca5b44.
Thanks,
Marek
@@ -18,7 +18,7 @@
# 02110-1301, USA
#
-# batctl build and install configuration
+# batctl build
BINARY_NAME = batctl
OBJ = main.o bat-hosts.o functions.o sys.o debug.o ping.o traceroute.o tcpdump.o list-batman.o hash.o vis.o debugfs.o bisect.o
@@ -46,7 +46,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)