From: Laurent Navet [Mali] Date: Sun, 4 Nov 2012 16:13:28 +0000 (+0000) Subject: Makefile : fix cleaning rules X-Git-Url: http://git.rot13.org/?p=simavr;a=commitdiff_plain;h=ebd6ec57aaf2db4c547d08713d4d94adc32ccdb6 Makefile : fix cleaning rules in order to leave the src tree as clean as before a build + add rm -f of autogenerated sim_core_config.h & sim_core_decl.h in simavr/Makefile + add rm *.hex in example/board_*/Makefile --- diff --git a/examples/board_ledramp/Makefile b/examples/board_ledramp/Makefile index 92dfc08..d3e00d4 100644 --- a/examples/board_ledramp/Makefile +++ b/examples/board_ledramp/Makefile @@ -46,4 +46,4 @@ ${target}: ${board} @echo $@ done clean: clean-${OBJ} - rm -rf *.a *.axf ${target} *.vcd + rm -rf *.a *.axf ${target} *.vcd *.hex diff --git a/examples/board_simduino/Makefile b/examples/board_simduino/Makefile index cf72f33..2332dcb 100644 --- a/examples/board_simduino/Makefile +++ b/examples/board_simduino/Makefile @@ -47,4 +47,4 @@ ${target}: ${board} @echo $@ done clean: clean-${OBJ} - rm -rf *.a *.axf ${target} *.vcd + rm -rf *.a *.axf ${target} *.vcd *.hex diff --git a/examples/board_timer_64led/Makefile b/examples/board_timer_64led/Makefile index 231ae92..61705ca 100644 --- a/examples/board_timer_64led/Makefile +++ b/examples/board_timer_64led/Makefile @@ -47,4 +47,4 @@ ${target}: ${board} @echo $@ done clean: clean-${OBJ} - rm -rf *.a *.axf ${target} *.vcd + rm -rf *.a *.axf ${target} *.vcd *.hex diff --git a/simavr/Makefile b/simavr/Makefile index 000e146..d805820 100644 --- a/simavr/Makefile +++ b/simavr/Makefile @@ -83,6 +83,7 @@ ${target} : ${OBJ}/${target}.elf clean: clean-${OBJ} rm -rf ${target} *.a *.so + rm -f sim_core_*.h DESTDIR = /usr/local PREFIX = ${DESTDIR}