aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorchrysn2012-10-23 01:38:27 +0200
committerchrysn2012-10-23 01:38:27 +0200
commitefce73f815ddbfb5f06fc45d34e6fe62b014d8e4 (patch)
tree5d902628401a804c55aa2594a60f607eb819c17d /Makefile
parent2ad04777bf63a1324afe2b65d689aa210928bfea (diff)
make `make clean` work again
the irq2nvic_h generates files in a way make doesn't understand, so it now also provides an option to clean up again
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7ebd769..e68f4f5 100644
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,12 @@ generatedheaders:
./scripts/irq2nvic_h $$yamlfile ; \
done
+cleanheaders:
+ @printf " CLEANING HEADERS\n"
+ $(Q)for yamlfile in `find -name 'irq.yaml'`; do \
+ ./scripts/irq2nvic_h --remove $$yamlfile ; \
+ done
+
lib: generatedheaders
$(Q)for i in $(addprefix $@/,$(TARGETS)); do \
if [ -d $$i ]; then \
@@ -77,7 +83,7 @@ install: lib
doc:
$(Q)$(MAKE) -C doc doc
-clean:
+clean: cleanheaders
$(Q)for i in $(addprefix lib/,$(TARGETS)) \
$(addsuffix /*/*,$(addprefix examples/,$(TARGETS))); do \
if [ -d $$i ]; then \