Remove olsrd executable at the beginning of compilation.
authorHenning Rogge <hrogge@googlemail.com>
Sat, 26 Feb 2011 17:44:32 +0000 (18:44 +0100)
committerHenning Rogge <hrogge@googlemail.com>
Sat, 26 Feb 2011 17:44:32 +0000 (18:44 +0100)
Prevents running an outdated executable if the build fails.

Makefile

index 985378d..221cb6d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -57,7 +57,10 @@ endif
 TAG_SRCS =     $(SRCS) $(HDRS)
 
 .PHONY: default_target
-default_target: $(EXENAME)
+default_target: clean_bin $(EXENAME)
+
+clean_bin:
+       @$(RM) -f $(EXENAME)
 
 $(EXENAME):    $(OBJS) src/builddata.o
 ifeq ($(LD_HAS_DYN), yes)