examples: add a clean-examples target, to clean all of the examples.
This commit is contained in:
parent
d0373af5c0
commit
6c459dc746
1 changed files with 7 additions and 1 deletions
|
@ -2,6 +2,7 @@ EXAMPLES = $(shell find $(dir $(lastword $(MAKEFILE_LIST))) -mindepth 2 -name Ma
|
||||||
# Generate some dummy .dummybuild/.dummyrebuild target files
|
# Generate some dummy .dummybuild/.dummyrebuild target files
|
||||||
EXAMPLES_BUILD = $(patsubst %,%.dummybuild,$(EXAMPLES))
|
EXAMPLES_BUILD = $(patsubst %,%.dummybuild,$(EXAMPLES))
|
||||||
EXAMPLES_REBUILD = $(patsubst %,%.dummyrebuild,$(EXAMPLES))
|
EXAMPLES_REBUILD = $(patsubst %,%.dummyrebuild,$(EXAMPLES))
|
||||||
|
EXAMPLES_CLEAN = $(patsubst %,%.dummyclean,$(EXAMPLES))
|
||||||
|
|
||||||
warning:
|
warning:
|
||||||
@echo "******************************************************"
|
@echo "******************************************************"
|
||||||
|
@ -21,12 +22,17 @@ build-examples: $(EXAMPLES_BUILD)
|
||||||
|
|
||||||
rebuild-examples: $(EXAMPLES_REBUILD)
|
rebuild-examples: $(EXAMPLES_REBUILD)
|
||||||
|
|
||||||
|
clean-examples: $(EXAMPLES_CLEAN)
|
||||||
|
|
||||||
%.dummybuild:
|
%.dummybuild:
|
||||||
$(MAKE) -C $(dir $@)
|
$(MAKE) -C $(dir $@)
|
||||||
|
|
||||||
%.dummyrebuild:
|
%.dummyrebuild:
|
||||||
$(MAKE) -C $(dir $@) rebuild
|
$(MAKE) -C $(dir $@) rebuild
|
||||||
|
|
||||||
.PHONY: warning rebuild-examples build-examples
|
%.dummyclean:
|
||||||
|
$(MAKE) -C $(dir $@) clean
|
||||||
|
|
||||||
|
.PHONY: warning rebuild-examples build-examples clean-examples
|
||||||
.NOTPARALLEL:
|
.NOTPARALLEL:
|
||||||
.ONESHELL:
|
.ONESHELL:
|
||||||
|
|
Loading…
Reference in a new issue