2022-11-17 21:43:29 +00:00
|
|
|
TRICK_HOME := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))..)
|
2015-06-22 21:11:08 +00:00
|
|
|
export TRICK_HOST_CPU := $(shell $(TRICK_HOME)/bin/trick-gte TRICK_HOST_CPU)
|
2022-11-17 21:43:29 +00:00
|
|
|
include ${TRICK_HOME}/share/trick/makefiles/Makefile.common
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2016-02-23 19:48:59 +00:00
|
|
|
|
2022-11-17 21:43:29 +00:00
|
|
|
NESTED_SIM_DIRECTORIES = $(wildcard */SIM_*)
|
|
|
|
SIM_DIRECTORIES = $(wildcard SIM_*) $(NESTED_SIM_DIRECTORIES)
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2022-11-17 21:43:29 +00:00
|
|
|
UNIT_TEST_RESULTS = $(addprefix $(TRICK_HOME)/trick_test/, $(addsuffix .xml, $(SIM_DIRECTORIES)))
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(UNIT_TEST_RESULTS)
|
2022-11-17 21:43:29 +00:00
|
|
|
- for i in $(SIM_DIRECTORIES) ; do \
|
|
|
|
if [ -f "$$i/"[Mm]"akefile" ] ; then \
|
|
|
|
$(MAKE) -C $$i spotless ; \
|
|
|
|
fi \
|
|
|
|
done
|