From e427c64ca108ee583f7faf05ea4d1b95512da40f Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Thu, 6 Oct 2005 17:34:57 +0000 Subject: [PATCH] NODB implemented --- helm/matita/contribs/LAMBDA-TYPES/Makefile | 33 +++++++++++++--------- helm/matita/tests/Makefile | 33 +++++++++++++--------- 2 files changed, 40 insertions(+), 26 deletions(-) diff --git a/helm/matita/contribs/LAMBDA-TYPES/Makefile b/helm/matita/contribs/LAMBDA-TYPES/Makefile index f39526a71..fc2e0ce84 100644 --- a/helm/matita/contribs/LAMBDA-TYPES/Makefile +++ b/helm/matita/contribs/LAMBDA-TYPES/Makefile @@ -1,15 +1,21 @@ SRC=$(shell find . -name "*.ma" -a -type f) -MATITAC=../../scripts/do_tests.sh $(DO_TESTS_OPTS) ../../matitac ../../matitaclean /dev/null -MATITACOPT=../../scripts/do_tests.sh $(DO_TESTS_OPTS) ../../matitac.opt ../../matitaclean.opt /dev/null -VERBOSEMATITAC=../../matitac -VERBOSEMATITACOPT=../../matitac.opt +MATITA_FLAGS = +NODB=false +ifeq ($(NODB),true) + MATITA_FLAGS += -nodb +endif -MATITACLEAN=../../matitaclean -MATITACLEANOPT=../../matitaclean.opt +MATITAC=../../scripts/do_tests.sh $(DO_TESTS_OPTS) "../../matitac $(MATITA_FLAGS)" "../../matitaclean $(MATITA_FLAGS)" /dev/null +MATITACOPT=../../scripts/do_tests.sh $(DO_TESTS_OPTS) "../../matitac.opt $(MATITA_FLAGS)" "../../matitaclean.opt $(MATITA_FLAGS)" /dev/null +VERBOSEMATITAC=../../matitac $(MATITA_FLAGS) +VERBOSEMATITACOPT=../../matitac.opt $(MATITA_FLAGS) -MATITADEP=../../matitadep -MATITADEPOPT=../../matitadep.opt +MATITACLEAN=../../matitaclean $(MATITA_FLAGS) +MATITACLEANOPT=../../matitaclean.opt $(MATITA_FLAGS) + +MATITADEP=../../matitadep $(MATITA_FLAGS) +MATITADEPOPT=../../matitadep.opt $(MATITA_FLAGS) DEPEND_NAME=.depend @@ -18,13 +24,13 @@ H=@ all: $(SRC:%.ma=%.mo) opt: - $(H)make MATITAC="$(MATITACOPT)" MATITACLEAN="$(MATITACLEANOPT)" MATITADEP="$(MATITADEPOPT)" all + $(H)$(MAKE) MATITAC='$(MATITACOPT)' MATITACLEAN='$(MATITACLEANOPT)' MATITADEP='$(MATITADEPOPT)' all verbose: - $(H)make MATITAC="$(VERBOSEMATITAC)" MATITACLEAN="$(MATITACLEAN)" MATITADEP="$(MATITADEP)" all + $(H)$(MAKE) MATITAC='$(VERBOSEMATITAC)' MATITACLEAN='$(MATITACLEAN)' MATITADEP='$(MATITADEP)' all %.opt: - $(H)make MATITAC="$(MATITACOPT)" MATITACLEAN="$(MATITACLEANOPT)" MATITADEP="$(MATITADEPOPT)" $(@:%.opt=%) + $(H)$(MAKE) MATITAC='$(MATITACOPT)' MATITACLEAN='$(MATITACLEANOPT)' MATITADEP='$(MATITADEPOPT)' $(@:%.opt=%) clean: $(H)$(MATITACLEAN) $(SRC) @@ -35,7 +41,7 @@ cleanall: depend: rm -f $(DEPEND_NAME) - make $(DEPEND_NAME) + $(MAKE) $(DEPEND_NAME) .PHONY: depend %.moo: @@ -44,4 +50,5 @@ depend: $(DEPEND_NAME): $(SRC) $(H)$(MATITADEP) $(SRC) > $@ || rm -f $@ -include $(DEPEND_NAME) +#include $(DEPEND_NAME) +include .depend diff --git a/helm/matita/tests/Makefile b/helm/matita/tests/Makefile index 602611302..d9ce39b18 100644 --- a/helm/matita/tests/Makefile +++ b/helm/matita/tests/Makefile @@ -1,15 +1,21 @@ SRC=$(wildcard *.ma) -MATITAC=../scripts/do_tests.sh $(DO_TESTS_OPTS) ../matitac ../matitaclean /dev/null -MATITACOPT=../scripts/do_tests.sh $(DO_TESTS_OPTS) ../matitac.opt ../matitaclean.opt /dev/null -VERBOSEMATITAC=../matitac -VERBOSEMATITACOPT=../matitac.opt +MATITA_FLAGS = +NODB=false +ifeq ($(NODB),true) + MATITA_FLAGS += -nodb +endif -MATITACLEAN=../matitaclean -MATITACLEANOPT=../matitaclean.opt +MATITAC=../scripts/do_tests.sh $(DO_TESTS_OPTS) "../matitac $(MATITA_FLAGS)" "../matitaclean $(MATITA_FLAGS)" /dev/null +MATITACOPT=../scripts/do_tests.sh $(DO_TESTS_OPTS) "../matitac.opt $(MATITA_FLAGS)" "../matitaclean.opt $(MATITA_FLAGS)" /dev/null +VERBOSEMATITAC=../matitac $(MATITA_FLAGS) +VERBOSEMATITACOPT=../matitac.opt $(MATITA_FLAGS) -MATITADEP=../matitadep -MATITADEPOPT=../matitadep.opt +MATITACLEAN=../matitaclean $(MATITA_FLAGS) +MATITACLEANOPT=../matitaclean.opt $(MATITA_FLAGS) + +MATITADEP=../matitadep $(MATITA_FLAGS) +MATITADEPOPT=../matitadep.opt $(MATITA_FLAGS) DEPEND_NAME=.depend @@ -18,13 +24,13 @@ H=@ all: $(SRC:%.ma=%.mo) opt: - $(H)make MATITAC="$(MATITACOPT)" MATITACLEAN="$(MATITACLEANOPT)" MATITADEP="$(MATITADEPOPT)" all + $(H)$(MAKE) MATITAC='$(MATITACOPT)' MATITACLEAN='$(MATITACLEANOPT)' MATITADEP='$(MATITADEPOPT)' all verbose: - $(H)make MATITAC="$(VERBOSEMATITAC)" MATITACLEAN="$(MATITACLEAN)" MATITADEP="$(MATITADEP)" all + $(H)$(MAKE) MATITAC='$(VERBOSEMATITAC)' MATITACLEAN='$(MATITACLEAN)' MATITADEP='$(MATITADEP)' all %.opt: - $(H)make MATITAC="$(MATITACOPT)" MATITACLEAN="$(MATITACLEANOPT)" MATITADEP="$(MATITADEPOPT)" $(@:%.opt=%) + $(H)$(MAKE) MATITAC='$(MATITACOPT)' MATITACLEAN='$(MATITACLEANOPT)' MATITADEP='$(MATITADEPOPT)' $(@:%.opt=%) clean: $(H)$(MATITACLEAN) $(SRC) @@ -35,7 +41,7 @@ cleanall: depend: rm -f $(DEPEND_NAME) - make $(DEPEND_NAME) + $(MAKE) $(DEPEND_NAME) .PHONY: depend %.moo: @@ -44,4 +50,5 @@ depend: $(DEPEND_NAME): $(SRC) $(H)$(MATITADEP) $(SRC) > $@ || rm -f $@ -include $(DEPEND_NAME) +#include $(DEPEND_NAME) +include .depend -- 2.39.2