mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Define phony make targets
This commit is contained in:
parent
0490eda6b5
commit
4f363ce0fe
2
Makefile
2
Makefile
@ -1,5 +1,7 @@
|
|||||||
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)
|
|||||||
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
|
|||||||
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)."
|
||||||
|
Loading…
Reference in New Issue
Block a user