Skip to content

Commit

Permalink
Define phony make targets
Browse files Browse the repository at this point in the history
  • Loading branch information
authmillenon committed Aug 8, 2013
1 parent 0490eda commit 4f363ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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 ;
Expand Down
2 changes: 2 additions & 0 deletions Makefile.base
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -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)."
Expand Down

0 comments on commit 4f363ce

Please sign in to comment.