]> git.sur5r.net Git - cc65/blobdiff - test/Makefile
Fixed _textcolor definition.
[cc65] / test / Makefile
index d71d5fda4279e2d1b4bfd962c05eedf55ff275f6..c858835171d3cfb169d5f60e7303800f688569c1 100644 (file)
@@ -1,19 +1,40 @@
+# top-level Makefile for the regression tests
 
-# toplevel makefile for the regression tests
+ifneq ($(shell echo),)
+  CMD_EXE = 1
+endif
 
-MAKE := make --no-print-dir
+ifdef CMD_EXE
+  RMDIR = -rmdir /s /q $(subst /,\,$1)
+else
+  RMDIR = $(RM) -r $1
+endif
 
-.PHONY: all clean
+WORKDIR = ../testwrk
 
-all:
-       @$(MAKE) -C val clean all
-       @$(MAKE) -C ref clean all
-       @$(MAKE) -C err clean all
-       @$(MAKE) -C misc clean all
+.PHONY: all dotests continue mostlyclean clean
 
-clean:
+all: dotests
+
+.NOTPARALLEL:
+
+dotests: mostlyclean continue
+
+continue:
+       @$(MAKE) -C asm all
+       @$(MAKE) -C dasm all
+       @$(MAKE) -C val all
+       @$(MAKE) -C ref all
+       @$(MAKE) -C err all
+       @$(MAKE) -C misc all
+
+mostlyclean:
+       @$(MAKE) -C asm clean
+       @$(MAKE) -C dasm clean
        @$(MAKE) -C val clean
        @$(MAKE) -C ref clean
        @$(MAKE) -C err clean
        @$(MAKE) -C misc clean
 
+clean: mostlyclean
+       @$(call RMDIR,$(WORKDIR))