X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fcontribs%2FLAMBDA-TYPES%2FMakefile;h=3e42a4ea18c5fd0fd93d5b0a149b47c6009aef07;hb=e78cf74f8976cf0ca554f64baa9979d0423ee927;hp=17478c3530b2d5cba427466be8097df6ded18de1;hpb=ebb9c7470956fb56a4cad9dcd4b8491c0ed01fca;p=helm.git diff --git a/helm/software/matita/contribs/LAMBDA-TYPES/Makefile b/helm/software/matita/contribs/LAMBDA-TYPES/Makefile index 17478c353..3e42a4ea1 100644 --- a/helm/software/matita/contribs/LAMBDA-TYPES/Makefile +++ b/helm/software/matita/contribs/LAMBDA-TYPES/Makefile @@ -1,30 +1,50 @@ +include ../Makefile.defs + DIR=$(shell basename $$PWD) +H=@ + +MATITAOPTIONS=$(MATITAUSEROPTIONS) -onepass + +LOG = log.txt + MMAS = $(shell find -name "*.mma") MAS = $(MMAS:%.mma=%.ma) -%.ma: %.mma - ../../matitac.opt $< 2> /dev/null - ../../matitac.opt -dump $@ $< 2> /dev/null - $(MAKE) depend.opt +$(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) + +%.ma %.mma: + $(H)$(RM) $(LOG) + $(H)$(BIN)matitac $(MATITAOPTIONS) $@ 2>> $(LOG) +%.ma.opt: + $(H)$(RM) $(LOG) + $(H)$(BIN)matitac.opt $(MATITAOPTIONS) $*.ma 2>> $(LOG) +%.mma.opt: + $(H)$(RM) $(LOG) + $(H)$(BIN)matitac.opt $(MATITAOPTIONS) $*.mma 2>> $(LOG) -$(DIR) all: $(MAS) - ../../matitac -$(DIR).opt opt all.opt: $(MAS) - ../../matitac.opt clean: - ../../matitaclean - rm -f $(MAS) - $(MAKE) depend + $(H)$(BIN)matitaclean $(MATITAOPTIONS) + $(H)$(RM) $(MAS) clean.opt: - ../../matitaclean.opt - rm -f $(MAS) - $(MAKE) depend.opt + $(H)$(BIN)matitaclean.opt $(MATITAOPTIONS) + $(H)$(RM) $(MAS) + depend: - ../../matitadep - cat Base-2/depends_mma >> depends + $$(H)(BIN)matitadep $(MATITAOPTIONS) depend.opt: - ../../matitadep.opt - cat Base-2/depends_mma >> depends + $(H)$(BIN)matitadep.opt $(MATITAOPTIONS) -include Base-2/.depend +ifneq ($(strip $(MAS)),) +clean.ma: + $(H)$(BIN)matitaclean.opt $(MATITAOPTIONS) $(MAS) + $(H)$(RM) $(MAS) +else +clean.ma: + $(H)echo no files to clean +endif