fixes for generated header cleanup
* make target phony * don't complain about missing files
This commit is contained in:
2
Makefile
2
Makefile
@@ -94,5 +94,5 @@ clean: cleanheaders
|
|||||||
@printf " CLEAN doxygen\n"
|
@printf " CLEAN doxygen\n"
|
||||||
$(Q)$(MAKE) -C doc clean
|
$(Q)$(MAKE) -C doc clean
|
||||||
|
|
||||||
.PHONY: build lib examples install doc clean generatedheaders
|
.PHONY: build lib examples install doc clean generatedheaders cleanheaders
|
||||||
|
|
||||||
|
|||||||
@@ -142,8 +142,10 @@ def main():
|
|||||||
vector_nvic_c = infile.replace('./include/libopencm3/', './lib/').replace('irq.yaml', 'vector_nvic.c')
|
vector_nvic_c = infile.replace('./include/libopencm3/', './lib/').replace('irq.yaml', 'vector_nvic.c')
|
||||||
|
|
||||||
if remove:
|
if remove:
|
||||||
os.unlink(nvic_h)
|
if os.path.exists(nvic_h):
|
||||||
os.unlink(vector_nvic_c)
|
os.unlink(nvic_h)
|
||||||
|
if os.path.exists(vector_nvic_c):
|
||||||
|
os.unlink(vector_nvic_c)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
if not needs_update([__file__, infile], [nvic_h, vector_nvic_c]):
|
if not needs_update([__file__, infile], [nvic_h, vector_nvic_c]):
|
||||||
|
|||||||
Reference in New Issue
Block a user