[06/14] batctl: Mark makefile targets without output as PHONY
Commit Message
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
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
@@ -60,3 +60,5 @@ clean:
install:
mkdir -p $(SBINDIR)
install -m 0755 $(BINARY_NAME) $(SBINDIR)
+
+.PHONY: all clean install