# considered errors.
#STRICT_WARNINGS=t
+# enable this if you want to disable the RUN_TARGETS for test execution.
+NO_TEST_RUNS=t
+
# if this is enabled, then the source dependencies are only generated if
# they're missing or if this file has changed. non-lax dependencies get
# rebuilt whenever a header involved changes, or dependent libraries have
# This section manipulates variable values to prepare them for their use
# in the standard CLAM support.
-# special actions for projects that are tests.
-ifneq "$(findstring test, $(TYPE))" ""
- # add the clean task at the end, so that we will always rebuild the tests
- # and run them again.
-#hmmm: this is a kludge to make sure we always run the tests. there has got
-# to be a better way.
-# LAST_TARGETS += clean
-endif
-
# see if they have got the clean flag set. if so, we will not build anything.
ifneq "$(CLEAN)" ""
NO_COMPILE = t
#echo -e "\tDIRTY_FILE=${DIRTY_FILE}"
#echo -e "\tSUBMAKE_FLAG=${SUBMAKE_FLAG}"
#echo -e "\tFAILURE_FILE=${FAILURE_FILE}"
+#echo -e "\tNO_TEST_RUNS=${NO_TEST_RUNS}"
-if [ ! -z "${RUN_TARGETS}" ]; then
+if [ ! -z "${RUN_TARGETS}" -a -z "${NO_TEST_RUNS}" ]; then
if [ -f "${DIRTY_FILE}" -o -f "${SUBMAKE_FLAG}" ]; then
total_exitval=0;
for program_name in ${RUN_TARGETS}; do
# "RUN_TARGETS" is a list of programs that should be executed as part of a make.
export RUN_TARGETS
+# "NO_TEST_RUNS" turns off execution of the RUN_TARGETS.
+export NO_TEST_RUNS
# "MAKEFILE_NAME" works with BUILD_BEFORE and BUILD_AFTER. This allows
# the name of the makefile in the subdirectory to be changed to something other