2014-11-22 17:28:05 +00:00
|
|
|
|
|
|
|
# toplevel makefile for the regression tests
|
|
|
|
|
|
|
|
MAKE := make --no-print-dir
|
|
|
|
|
2014-11-24 19:57:58 +00:00
|
|
|
ifneq ($(shell echo),)
|
|
|
|
CMD_EXE = 1
|
|
|
|
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
|
|
|
|
MKDIR = mkdir
|
2014-11-25 12:47:31 +00:00
|
|
|
RMDIR = rmdir
|
2014-11-24 19:57:58 +00:00
|
|
|
else
|
2014-11-25 11:56:45 +00:00
|
|
|
RM := rm -f
|
|
|
|
EXE :=
|
|
|
|
MKDIR = mkdir -p
|
2014-11-25 12:47:31 +00:00
|
|
|
RMDIR = rmdir
|
2014-11-24 19:57:58 +00:00
|
|
|
endif
|
|
|
|
|
2014-11-25 11:56:45 +00:00
|
|
|
WORKDIR := ../testwrk
|
|
|
|
|
2014-11-24 19:57:58 +00:00
|
|
|
.PHONY: dotests clean
|
|
|
|
|
|
|
|
all: dotests
|
|
|
|
|
2014-11-25 11:56:45 +00:00
|
|
|
$(WORKDIR):
|
|
|
|
@$(MKDIR) $(WORKDIR)
|
|
|
|
|
|
|
|
$(WORKDIR)/bdiff$(EXE): $(WORKDIR)
|
|
|
|
@$(CC) -o $(WORKDIR)/bdiff$(EXE) bdiff.c
|
2014-11-24 19:57:58 +00:00
|
|
|
|
2014-11-25 11:56:45 +00:00
|
|
|
dotests: $(WORKDIR)/bdiff$(EXE)
|
2014-11-23 11:18:19 +00:00
|
|
|
@$(MAKE) -C val clean all
|
|
|
|
@$(MAKE) -C ref clean all
|
|
|
|
@$(MAKE) -C err clean all
|
|
|
|
@$(MAKE) -C misc clean all
|
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-11-22 17:28:05 +00:00
|
|
|
clean:
|
|
|
|
@$(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-11-25 11:56:45 +00:00
|
|
|
@$(RM) $(WORKDIR)/bdiff$(EXE)
|
2014-11-25 12:47:31 +00:00
|
|
|
@$(RMDIR) $(WORKDIR)
|