Skip to content
Snippets Groups Projects
Commit 4f363ce0 authored by Martine Lenders's avatar Martine Lenders
Browse files

Define phony make targets

parent 0490eda6
No related branches found
No related tags found
No related merge requests found
DIRS = $(RIOTCPU) core drivers sys DIRS = $(RIOTCPU) core drivers sys
.PHONY: all clean doc
all: all:
mkdir -p $(BINDIR) mkdir -p $(BINDIR)
@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ; @for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;
......
...@@ -7,6 +7,8 @@ SRC = $(wildcard *.c) ...@@ -7,6 +7,8 @@ SRC = $(wildcard *.c)
OBJ = $(SRC:%.c=$(BINDIR)%.o) OBJ = $(SRC:%.c=$(BINDIR)%.o)
DEP = $(SRC:%.c=$(BINDIR)%.d) DEP = $(SRC:%.c=$(BINDIR)%.d)
.PHONY: clean
include $(RIOTCPU)/Makefile.base include $(RIOTCPU)/Makefile.base
include $(RIOTBOARD)/Makefile.base include $(RIOTBOARD)/Makefile.base
......
...@@ -40,6 +40,8 @@ endif ...@@ -40,6 +40,8 @@ endif
endif endif
endif endif
.PHONY: all clean flash doc term
## make script for your project. Build RIOT-base here! ## make script for your project. Build RIOT-base here!
all: $(PROJBINDIR)/$(PROJECT).a all: $(PROJBINDIR)/$(PROJECT).a
@echo "Building project $(PROJECT) for $(BOARD) w/ MCU $(MCU)." @echo "Building project $(PROJECT) for $(BOARD) w/ MCU $(MCU)."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment