X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fcontribs%2FLAMBDA-TYPES%2FMakefile;h=28fe09079f84806f751a0a68517b5a4aec05b707;hb=b5564e329d48efa6c2ca01da18203def26a70294;hp=93fba67cede85250e940daded0ced5542e40b635;hpb=ae5ab4187e4dcc57a16d2375445f8353fbad7d92;p=helm.git diff --git a/helm/software/matita/contribs/LAMBDA-TYPES/Makefile b/helm/software/matita/contribs/LAMBDA-TYPES/Makefile index 93fba67ce..28fe09079 100644 --- a/helm/software/matita/contribs/LAMBDA-TYPES/Makefile +++ b/helm/software/matita/contribs/LAMBDA-TYPES/Makefile @@ -1,10 +1,39 @@ -GOALS = all opt clean clean.opt +include ../Makefile.defs -DEVELS = Base-1 LambdaDelta-1 Base-2 Unified-Sub +DIR=$(shell basename $$PWD) -$(GOALS): - @$(foreach DEVEL, $(DEVELS), $(MAKE) -k -C $(DEVEL) $@;) +H=@ -.PHONY: (GOALS) +MATITAOPTIONS=$(MATITAUSEROPTIONS) -onepass -.SUFFIXES: +LOG = log.txt + +DEVELS = Legacy-2 Base-2 LambdaDelta-2 + +MAS = $(shell find $(DEVELS) -mindepth 2 -name "*.ma") + +$(DIR) all: + $(H)$(RM) $(LOG) + $(H)$(BIN)matitac $(MATITAOPTIONS) 2>> $(LOG) +$(DIR).opt opt all.opt: + $(H)$(RM) $(LOG) + $(H)$(BIN)matitac.opt $(MATITAOPTIONS) 2>> $(LOG) +clean: + $(H)$(BIN)matitaclean $(MATITAOPTIONS) + $(H)$(RM) $(MAS) +clean.opt: + $(H)$(BIN)matitaclean.opt $(MATITAOPTIONS) + $(H)$(RM) $(MAS) +depend: + $$(H)(BIN)matitadep $(MATITAOPTIONS) +depend.opt: + $(H)$(BIN)matitadep.opt $(MATITAOPTIONS) + +ifneq ($(strip $(MAS)),) +clean.ma: + $(H)$(BIN)matitaclean.opt $(MATITAOPTIONS) $(MAS) + $(H)$(RM) $(MAS) +else +clean.ma: + $(H)echo no files to clean +endif