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

Message ID 1305980898-30494-6-git-send-email-sven@narfation.org (mailing list archive)
State Accepted, archived
Commit d487861eab6748165c72e6f064f37742057049ff
Headers

Commit Message

Sven Eckelmann May 21, 2011, 12:28 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>
---
 Makefile |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
  

Comments

Marek Lindner May 22, 2011, 9:41 a.m. UTC | #1
On Saturday 21 May 2011 14:28:10 Sven Eckelmann wrote:
> 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.

Applied in revision d487861.

Thanks,
Marek
  

Patch

diff --git a/Makefile b/Makefile
index 8fc2300..f95a9d2 100755
--- a/Makefile
+++ b/Makefile
@@ -60,3 +60,5 @@  clean:
 install:
 	mkdir -p $(SBINDIR)
 	install -m 0755 $(BINARY_NAME) $(SBINDIR)
+
+.PHONY: all clean install