Move clean rules to makefile in sim directory. #284

Moved the clean rules to the makefile in the sim directory.  They will
always work whether the rest of Trick is set up or not.
This commit is contained in:
Alex Lin 2016-08-19 09:57:13 -05:00
parent dfde52864f
commit 60473dde03
2 changed files with 22 additions and 19 deletions

View File

@ -52,6 +52,27 @@ ifndef TRICK_HOME
export TRICK_HOME := SUB_TRICK_HOME
endif
include ${TRICK_HOME}/share/trick/makefiles/Makefile.sim
-include ${TRICK_HOME}/share/trick/makefiles/Makefile.sim
-include S_overrides.mk
no_makefile_sim:
@echo ${TRICK_HOME}/share/trick/makefiles/Makefile.sim not found
exit -1
tidy:
-rm -f S_source.hh S_sie.resource
-rm -f S_main* T_main*
-rm -f build/Makefile_*
-rm -rf S_default.dat
clean: tidy
-rm -f DP_Product/DP_rt_frame DP_Product/DP_rt_itimer
-rm -f DP_Product/DP_rt_jobs DP_Product/DP_rt_timeline DP_Product/DP_mem_stats
-rm -rf build trick
@ echo "Removed build directory"
spotless: clean
apocalypse: clean
@echo "I love the smell of napalm in the morning"

View File

@ -106,24 +106,6 @@ Simulation make options:\n\
make spotless - Performs a clean\n\
make apocalypse - Performs a clean"
tidy:
-rm -f S_source.hh S_sie.resource
-rm -f S_main* T_main*
-rm -f build/Makefile_*
-rm -rf S_default.dat
clean: tidy
-rm -f DP_Product/DP_rt_frame DP_Product/DP_rt_itimer
-rm -f DP_Product/DP_rt_jobs DP_Product/DP_rt_timeline DP_Product/DP_mem_stats
-rm -rf build trick
@ echo "Removed build directory"
spotless: clean
apocalypse: clean
@echo "I love the smell of napalm in the morning"
# Dependencies for the above rules generated by configuration_process, ICG, make_makefile and make_makefile_swig
-include build/S_define.deps
-include build/Makefile_ICG