2014-11-22 17:28:05 +00:00
|
|
|
|
2014-12-17 22:44:39 +00:00
|
|
|
# top-level makefile for the regression tests
|
2014-11-22 17:28:05 +00:00
|
|
|
|
2014-12-17 22:35:18 +00:00
|
|
|
# You can comment this special target when you debug the regression tests.
|
|
|
|
# Then, make will give you more progress reports.
|
|
|
|
.SILENT:
|
2014-11-22 17:28:05 +00:00
|
|
|
|
2014-11-24 19:57:58 +00:00
|
|
|
ifneq ($(shell echo),)
|
2014-12-17 22:44:39 +00:00
|
|
|
CMD_EXE := 1
|
2014-11-24 19:57:58 +00:00
|
|
|
endif
|
2014-11-22 17:28:05 +00:00
|
|
|
|
2014-11-24 19:57:58 +00:00
|
|
|
ifdef CMD_EXE
|
2014-11-25 11:56:45 +00:00
|
|
|
RM := del /f
|
|
|
|
EXE := .exe
|
2014-12-17 22:44:39 +00:00
|
|
|
MKDIR := mkdir
|
|
|
|
RMDIR := rmdir
|
2014-11-24 19:57:58 +00:00
|
|
|
else
|
2014-11-25 11:56:45 +00:00
|
|
|
RM := rm -f
|
|
|
|
EXE :=
|
2014-12-17 22:44:39 +00:00
|
|
|
MKDIR := mkdir -p
|
|
|
|
RMDIR := rmdir
|
2014-11-24 19:57:58 +00:00
|
|
|
endif
|
|
|
|
|
2014-11-25 11:56:45 +00:00
|
|
|
WORKDIR := ../testwrk
|
|
|
|
|
2014-12-17 22:35:18 +00:00
|
|
|
.PHONY: all dotests continue mostly-clean clean
|
2014-11-24 19:57:58 +00:00
|
|
|
|
|
|
|
all: dotests
|
|
|
|
|
2014-11-25 11:56:45 +00:00
|
|
|
$(WORKDIR):
|
2014-12-17 22:35:18 +00:00
|
|
|
$(MKDIR) $(WORKDIR)
|
2014-11-25 11:56:45 +00:00
|
|
|
|
2014-12-17 22:35:18 +00:00
|
|
|
$(WORKDIR)/bdiff$(EXE): bdiff.c | $(WORKDIR)
|
|
|
|
$(CC) -O2 -o $@ $<
|
2014-11-24 19:57:58 +00:00
|
|
|
|
2014-12-18 19:30:35 +00:00
|
|
|
.NOTPARALLEL:
|
|
|
|
|
2014-12-17 22:35:18 +00:00
|
|
|
dotests: mostly-clean continue
|
2014-11-22 17:28:05 +00:00
|
|
|
|
2014-11-26 00:38:30 +00:00
|
|
|
continue: $(WORKDIR)/bdiff$(EXE)
|
|
|
|
@$(MAKE) -C val all
|
|
|
|
@$(MAKE) -C ref all
|
|
|
|
@$(MAKE) -C err all
|
|
|
|
@$(MAKE) -C misc all
|
|
|
|
|
2014-12-17 22:35:18 +00:00
|
|
|
mostly-clean:
|
2014-11-22 17:28:05 +00:00
|
|
|
@$(MAKE) -C val clean
|
|
|
|
@$(MAKE) -C ref clean
|
|
|
|
@$(MAKE) -C err clean
|
2014-11-22 21:22:30 +00:00
|
|
|
@$(MAKE) -C misc clean
|
2014-12-17 22:35:18 +00:00
|
|
|
|
|
|
|
clean: mostly-clean
|
|
|
|
$(RM) $(WORKDIR)/bdiff$(EXE)
|
|
|
|
$(RMDIR) $(WORKDIR)
|