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
This commit is contained in:
chrysn
2012-10-23 01:38:27 +02:00
parent 2ad04777bf
commit efce73f815
2 changed files with 17 additions and 1 deletions

View File

@@ -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 \