mirror of
https://github.com/cc65/cc65.git
synced 2024-11-18 15:05:14 +00:00
35 lines
530 B
Makefile
35 lines
530 B
Makefile
# top-level Makefile for the regression tests
|
|
|
|
ifneq ($(shell echo),)
|
|
CMD_EXE = 1
|
|
endif
|
|
|
|
ifdef CMD_EXE
|
|
RMDIR = -rmdir /s /q $(subst /,\,$1)
|
|
else
|
|
RMDIR = $(RM) -r $1
|
|
endif
|
|
|
|
WORKDIR = ../testwrk/asm
|
|
|
|
SUBDIRS = cpudetect opcodes listing val err
|
|
|
|
.PHONY: all continue mostlyclean clean
|
|
|
|
all: mostlyclean continue
|
|
|
|
define CALL_template
|
|
|
|
continue::
|
|
@$(MAKE) -C $1 all
|
|
|
|
mostlyclean::
|
|
@$(MAKE) -C $1 clean
|
|
|
|
endef
|
|
|
|
$(foreach subdir,$(SUBDIRS),$(eval $(call CALL_template,$(subdir))))
|
|
|
|
clean: mostlyclean
|
|
@$(call RMDIR,$(WORKDIR))
|