Browse Source

Define phony make targets

dev/timer
authmillenon 10 years ago
parent
commit
4f363ce0fe
  1. 2
      Makefile
  2. 2
      Makefile.base
  3. 2
      Makefile.include

2
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 ;

2
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

2
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)."

Loading…
Cancel
Save