From 4f363ce0fe87b0f45b37fa19d499ad824cab1fad Mon Sep 17 00:00:00 2001
From: authmillenon <authmill@datalove.me>
Date: Thu, 8 Aug 2013 15:44:44 +0200
Subject: [PATCH] Define phony make targets

---
 Makefile         | 2 ++
 Makefile.base    | 2 ++
 Makefile.include | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/Makefile b/Makefile
index 27df73ed17..d6744bed3c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
 DIRS = $(RIOTCPU) core drivers sys 
 
+.PHONY: all clean doc
+
 all:
 	mkdir -p $(BINDIR)
 	@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;
diff --git a/Makefile.base b/Makefile.base
index a05d65d1c2..10b321c7de 100644
--- a/Makefile.base
+++ b/Makefile.base
@@ -7,6 +7,8 @@ SRC = $(wildcard *.c)
 OBJ = $(SRC:%.c=$(BINDIR)%.o)
 DEP = $(SRC:%.c=$(BINDIR)%.d)
 
+.PHONY: clean
+
 include $(RIOTCPU)/Makefile.base
 include $(RIOTBOARD)/Makefile.base
 
diff --git a/Makefile.include b/Makefile.include
index 5186db8ecf..011aae4972 100644
--- a/Makefile.include
+++ b/Makefile.include
@@ -40,6 +40,8 @@ endif
 endif
 endif
 
+.PHONY: all clean flash doc term
+
 ## make script for your project. Build RIOT-base here!
 all: $(PROJBINDIR)/$(PROJECT).a
 	@echo "Building project $(PROJECT) for $(BOARD) w/ MCU $(MCU)."
-- 
GitLab