1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-12 07:07:19 +00:00
cc65/test/asm/Makefile

35 lines
535 B
Makefile
Raw Normal View History

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