2022-02-19 12:44:20 +01:00
|
|
|
# top-level Makefile for the regression tests
|
2016-09-03 16:45:59 +02:00
|
|
|
|
2017-03-19 17:48:12 +01:00
|
|
|
ifneq ($(shell echo),)
|
|
|
|
CMD_EXE = 1
|
|
|
|
endif
|
2016-09-03 16:45:59 +02:00
|
|
|
|
2017-03-19 17:48:12 +01:00
|
|
|
ifdef CMD_EXE
|
2022-02-19 12:44:20 +01:00
|
|
|
RMDIR = -rmdir /s /q $(subst /,\,$1)
|
2017-03-19 17:48:12 +01:00
|
|
|
else
|
|
|
|
RMDIR = $(RM) -r $1
|
|
|
|
endif
|
2016-09-03 16:45:59 +02:00
|
|
|
|
2022-02-19 12:44:20 +01:00
|
|
|
WORKDIR = ../testwrk/asm
|
2017-03-19 17:48:12 +01:00
|
|
|
|
2022-04-26 17:07:57 +02:00
|
|
|
SUBDIRS = cpudetect opcodes listing val err
|
2017-03-19 17:48:12 +01:00
|
|
|
|
2022-02-19 12:52:02 +01:00
|
|
|
.PHONY: all continue mostlyclean clean
|
2017-03-19 17:48:12 +01:00
|
|
|
|
2022-02-19 12:52:02 +01:00
|
|
|
all: mostlyclean continue
|
2017-03-19 17:48:12 +01:00
|
|
|
|
2022-02-19 12:44:20 +01:00
|
|
|
define CALL_template
|
2017-03-19 17:48:12 +01:00
|
|
|
|
2022-02-19 12:44:20 +01:00
|
|
|
continue::
|
|
|
|
@$(MAKE) -C $1 all
|
2017-03-19 17:48:12 +01:00
|
|
|
|
2022-02-19 12:44:20 +01:00
|
|
|
mostlyclean::
|
|
|
|
@$(MAKE) -C $1 clean
|
2017-03-19 17:48:12 +01:00
|
|
|
|
2022-02-19 12:44:20 +01:00
|
|
|
endef
|
2017-03-19 17:48:12 +01:00
|
|
|
|
2022-02-19 12:44:20 +01:00
|
|
|
$(foreach subdir,$(SUBDIRS),$(eval $(call CALL_template,$(subdir))))
|
2020-09-29 19:03:42 +02:00
|
|
|
|
2022-02-19 12:44:20 +01:00
|
|
|
clean: mostlyclean
|
2017-03-19 17:48:12 +01:00
|
|
|
@$(call RMDIR,$(WORKDIR))
|