[08/14] batmand: Build binary before installing it

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

Commit Message

Sven Eckelmann May 21, 2011, 1:10 p.m. UTC
  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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
  

Patch

diff --git a/Makefile b/Makefile
index 804bdd4..df2f5b2 100755
--- a/Makefile
+++ b/Makefile
@@ -86,7 +86,7 @@  $(BINARY_NAME): $(OBJ) Makefile
 clean:
 	rm -f $(BINARY_NAME) $(OBJ) $(DEP)
 
-install:
+install: $(BINARY_NAME)
 	mkdir -p $(SBINDIR)
 	install -m 0755 $(BINARY_NAME) $(SBINDIR)