From: Stefano Zacchiroli Date: Fri, 7 Oct 2005 08:19:43 +0000 (+0000) Subject: added support for MATITA_FLAGS and NODB make variables X-Git-Tag: V_0_7_2_3~231 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=9f02c52b23c8f56a3deaab6f5eae29ca2c3acb9f;p=helm.git added support for MATITA_FLAGS and NODB make variables --- diff --git a/helm/matita/template_makefile.in b/helm/matita/template_makefile.in index 073efb8f4..6079bb4eb 100644 --- a/helm/matita/template_makefile.in +++ b/helm/matita/template_makefile.in @@ -1,6 +1,12 @@ SRC=$(shell find @ROOT@ -name "*.ma" -a -type f) TODO=$(SRC:%.ma=%.mo) +MATITA_FLAGS= +NODB=false +ifeq ($(NODB),true) + MATITA_FLAGS += -nodb +endif + MATITAC=@CC@ MATITACLEAN=@CLEAN@ MATITADEP=@DEP@ @@ -8,14 +14,14 @@ MATITADEP=@DEP@ all: $(TODO) clean: - $(MATITACLEAN) $(SRC) + $(MATITACLEAN) $(MATITA_FLAGS) $(SRC) rm -f $(TODO) %.moo: - ($(MATITAC) -q -I @ROOT@ $< | (grep -v "^make" || true)) + ($(MATITAC) $(MATITA_FLAGS) -q -I @ROOT@ $< | (grep -v "^make" || true)) @DEPFILE@ : $(SRC) - @DEP@ -I '@ROOT@' $^ > @DEPFILE@ + $(MATITADEP) $(MATITA_FLAGS) -I '@ROOT@' $^ > @DEPFILE@ # this is the depend for full targets like: # dir/dir/name.moo: dir/dir/name.ma dir/dep.moo