The following commit has been merged in the master branch: commit 9eba222c470369af82ad512848941335ef1f40cc Author: Sven Eckelmann sven@narfation.org Date: Sat May 21 15:10:39 2011 +0200
batmand: Make called tools in clean and install configurable
Signed-off-by: Sven Eckelmann sven@narfation.org
diff --git a/Makefile b/Makefile index a0a7f88..6c77fe7 100755 --- a/Makefile +++ b/Makefile @@ -69,6 +69,9 @@ endif
# standard build tools CC ?= gcc +RM ?= rm -f +INSTALL ?= install +MKDIR ?= mkdir -p COMPILE.c = $(Q_CC)$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c LINK.o = $(Q_LD)$(CC) $(LDFLAGS) $(TARGET_ARCH)
@@ -91,11 +94,11 @@ $(BINARY_NAME): $(OBJ) $(LINK.o) $^ $(LDLIBS) -o $@
clean: - rm -f $(BINARY_NAME) $(OBJ) $(DEP) + $(RM) $(BINARY_NAME) $(OBJ) $(DEP)
install: $(BINARY_NAME) - mkdir -p $(SBINDIR) - install -m 0755 $(BINARY_NAME) $(SBINDIR) + $(MKDIR) $(SBINDIR) + $(INSTALL) -m 0755 $(BINARY_NAME) $(SBINDIR)
# load dependencies DEP = $(OBJ:.o=.d)