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=6f5842f0d3d71e735306f29c5e63b3c4aceaed1d;hpb=5c4c038e4d0ebd3011262b9b79747033550c12c6;p=helm.git diff --git a/helm/software/matita/contribs/LAMBDA-TYPES/Makefile b/helm/software/matita/contribs/LAMBDA-TYPES/Makefile index 6f5842f0d..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 = Level-1/Base Level-1/LambdaDelta Unified +DIR=$(shell basename $$PWD) -$(GOALS): - @$(foreach DEVEL, $(DEVELS), $(MAKE) -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