Need preCP hook for S_overrides.mk to support actions early in build, without Makefile_sim consequences

Added new rule preMakefile_simHook for users to use to run actions before
CP is run.

refs #136
This commit is contained in:
Alex Lin 2016-06-27 10:56:01 -05:00
parent bb3a788c5f
commit eb9ed260a4

View File

@ -12,13 +12,13 @@ ifeq ($(MAKECMDGOALS), debug)
TRICK_CPFLAGS += --debug
endif
all : ${TRICK_HOME}/lib_${TRICK_HOST_CPU}/libtrick.a Makefile_sim
all : ${TRICK_HOME}/lib_${TRICK_HOST_CPU}/libtrick.a preMakefile_simHook Makefile_sim
@/bin/cp ${TRICK_HOME}/bin/MAKE_out_header.txt MAKE_out
@$(MAKE) --no-print-directory -f Makefile_sim ICG 2>&1 | tee -a MAKE_out ; exit $${PIPESTATUS[0]}
@$(MAKE) --no-print-directory -f Makefile_sim convert_swig 2>&1 | tee -a MAKE_out ; exit $${PIPESTATUS[0]}
@$(MAKE) --no-print-directory -f Makefile_sim all 2>&1 | tee -a MAKE_out ; exit $${PIPESTATUS[0]}
test : ${TRICK_HOME}/lib_${TRICK_HOST_CPU}/libtrick.a Makefile_sim
test : ${TRICK_HOME}/lib_${TRICK_HOST_CPU}/libtrick.a preMakefile_simHook Makefile_sim
@/bin/cp ${TRICK_HOME}/bin/MAKE_out_header.txt MAKE_out
@$(MAKE) --no-print-directory -f Makefile_sim ICG 2>&1 | tee -a MAKE_out ; exit $${PIPESTATUS[0]}
@$(MAKE) --no-print-directory -f Makefile_sim convert_swig 2>&1 | tee -a MAKE_out ; exit $${PIPESTATUS[0]}
@ -26,6 +26,8 @@ test : ${TRICK_HOME}/lib_${TRICK_HOST_CPU}/libtrick.a Makefile_sim
debug : all
preMakefile_simHook:
${TRICK_HOME}/lib_${TRICK_HOST_CPU}/libtrick.a:
@echo "Cannot find $@. Please build Trick for this platfrom"
@exit -1