2022-11-17 21:43:29 +00:00
|
|
|
TRICK_HOME := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))..)
|
|
|
|
export TRICK_HOST_CPU := $(shell $(TRICK_HOME)/bin/trick-gte TRICK_HOST_CPU)
|
|
|
|
include ${TRICK_HOME}/share/trick/makefiles/Makefile.common
|
|
|
|
|
|
|
|
|
|
|
|
SIM_DIRECTORIES = $(wildcard SIM_*)
|
|
|
|
UNIT_TEST_RESULTS = $(addprefix $(TRICK_HOME)/trick_test/, $(addsuffix .xml, $(SIM_DIRECTORIES)))
|
|
|
|
|
2024-11-14 15:42:09 +00:00
|
|
|
# The auto-generated makefile for each test does not know to call other makefiles the user may have included.
|
|
|
|
# User generated clean calls must be directly called here
|
|
|
|
# Otherwise build artifacts may not be cleaned and give misleading test results
|
2024-10-23 21:43:46 +00:00
|
|
|
clean_trickify:
|
|
|
|
for i in $(SIM_DIRECTORIES) ; do \
|
|
|
|
if [ -f "$$i/trickified_project/trickified/"[Mm]"akefile" ] ; then \
|
|
|
|
$(MAKE) -C $$i/trickified_project/trickified/ clean ; \
|
2024-11-14 15:42:09 +00:00
|
|
|
elif [ -f "$$i/models/trickified/"[Mm]"akefile" ] ; then \
|
|
|
|
$(MAKE) -C $$i/models/trickified/ clean ; \
|
2024-10-23 21:43:46 +00:00
|
|
|
fi \
|
|
|
|
done
|
2022-11-17 21:43:29 +00:00
|
|
|
|
2024-10-23 21:43:46 +00:00
|
|
|
clean: clean_trickify
|
2022-11-17 21:43:29 +00:00
|
|
|
rm -f $(UNIT_TEST_RESULTS)
|
|
|
|
- for i in $(SIM_DIRECTORIES) ; do \
|
|
|
|
if [ -f "$$i/"[Mm]"akefile" ] ; then \
|
|
|
|
$(MAKE) -C $$i spotless ; \
|
|
|
|
fi \
|
|
|
|
done
|