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:
8
Makefile
8
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 \
|
||||
|
||||
Reference in New Issue
Block a user