1
0
mirror of https://github.com/cc65/cc65.git synced 2025-02-06 12:31:12 +00:00

All regression-tests subdirectories are cleaned before the first test starts, so that 'make continue' won't see debris when it moves to the next directory.

This commit is contained in:
Greg King 2014-12-17 17:35:18 -05:00
parent d9c8c1de45
commit 15a22bd1c8

View File

@ -1,7 +1,9 @@
# toplevel makefile for the regression tests # toplevel makefile for the regression tests
MAKE := make --no-print-dir # You can comment this special target when you debug the regression tests.
# Then, make will give you more progress reports.
.SILENT:
ifneq ($(shell echo),) ifneq ($(shell echo),)
CMD_EXE = 1 CMD_EXE = 1
@ -21,21 +23,17 @@ endif
WORKDIR := ../testwrk WORKDIR := ../testwrk
.PHONY: dotests clean .PHONY: all dotests continue mostly-clean clean
all: dotests all: dotests
$(WORKDIR): $(WORKDIR):
@$(MKDIR) $(WORKDIR) $(MKDIR) $(WORKDIR)
$(WORKDIR)/bdiff$(EXE): $(WORKDIR) $(WORKDIR)/bdiff$(EXE): bdiff.c | $(WORKDIR)
@$(CC) -o $(WORKDIR)/bdiff$(EXE) bdiff.c $(CC) -O2 -o $@ $<
dotests: $(WORKDIR)/bdiff$(EXE) dotests: mostly-clean continue
@$(MAKE) -C val clean all
@$(MAKE) -C ref clean all
@$(MAKE) -C err clean all
@$(MAKE) -C misc clean all
continue: $(WORKDIR)/bdiff$(EXE) continue: $(WORKDIR)/bdiff$(EXE)
@$(MAKE) -C val all @$(MAKE) -C val all
@ -43,10 +41,12 @@ continue: $(WORKDIR)/bdiff$(EXE)
@$(MAKE) -C err all @$(MAKE) -C err all
@$(MAKE) -C misc all @$(MAKE) -C misc all
clean: mostly-clean:
@$(MAKE) -C val clean @$(MAKE) -C val clean
@$(MAKE) -C ref clean @$(MAKE) -C ref clean
@$(MAKE) -C err clean @$(MAKE) -C err clean
@$(MAKE) -C misc clean @$(MAKE) -C misc clean
@$(RM) $(WORKDIR)/bdiff$(EXE)
@$(RMDIR) $(WORKDIR) clean: mostly-clean
$(RM) $(WORKDIR)/bdiff$(EXE)
$(RMDIR) $(WORKDIR)