Move clean rules to makefile in sim directory. #284

Added the clean rules back to Makefile.sim with a addition of
defining a conditional variable.  If this variable is set than
the set of rules in the local makefile will not be defined.  This
should allow the sim to be cleaned whether TRICK_HOME exists or not.
This commit is contained in:
Alex Lin 2016-08-23 09:00:03 -05:00
parent d0349772d5
commit 90552a5053

View File

@ -106,6 +106,25 @@ 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 -f 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"
CLEAN_RULES_DEFINED = 1
# 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