Cleaned up test Makefiles.

This commit is contained in:
Oliver Schmidt
2017-03-19 17:48:12 +01:00
parent 3a30669ff6
commit 66634ef683
8 changed files with 253 additions and 226 deletions

View File

@@ -1,43 +1,30 @@
# top-level makefile for the regression tests
# top-level Makefile for the regression tests
# You can comment this special target when you debug the regression tests.
# Then, make will give you more progress reports.
.SILENT:
ifneq ($(shell echo),)
CMD_EXE := 1
CMD_EXE = 1
endif
ifdef CMD_EXE
EXE := .exe
MKDIR = mkdir $(subst /,\,$1)
RMDIR = -rmdir /s /q $(subst /,\,$1)
else
EXE :=
MKDIR = mkdir $1
RMDIR = $(RM) -r $1
endif
WORKDIR := ../testwrk
CC := gcc
WORKDIR = ../testwrk
.PHONY: all dotests continue mostlyclean clean
all: dotests
$(WORKDIR):
$(call MKDIR,$(WORKDIR))
$(WORKDIR)/bdiff$(EXE): bdiff.c | $(WORKDIR)
$(CC) -O2 -o $@ $<
.NOTPARALLEL:
dotests: mostlyclean continue
continue: $(WORKDIR)/bdiff$(EXE)
continue:
@$(MAKE) -C assembler all
@$(MAKE) -C disassembler all
@$(MAKE) -C val all
@@ -46,6 +33,8 @@ continue: $(WORKDIR)/bdiff$(EXE)
@$(MAKE) -C misc all
mostlyclean:
@$(MAKE) -C assembler clean
@$(MAKE) -C disassembler clean
@$(MAKE) -C val clean
@$(MAKE) -C ref clean
@$(MAKE) -C err clean