[06/14] batmand: Mark makefile targets without output as PHONY

Message ID 1305983442-1607-6-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
  Normally makefile targets should create an output with the same name as
the target. It is necessary to mark them as PHONY to prevent that the
virtual target like all, clean or install aren't executed when a file
with the same name exists.

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, 2 insertions(+), 0 deletions(-)
  

Patch

diff --git a/Makefile b/Makefile
index 2514c2d..3b517da 100755
--- a/Makefile
+++ b/Makefile
@@ -89,3 +89,5 @@  clean:
 install:
 	mkdir -p $(SBINDIR)
 	install -m 0755 $(BINARY_NAME) $(SBINDIR)
+
+.PHONY: all clean install