X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fcontribs%2FLAMBDA-TYPES%2FMakefile;h=3e42a4ea18c5fd0fd93d5b0a149b47c6009aef07;hb=d6a9ed2a08fcc4e3e26a40cde8cab88c2c69cb3a;hp=a57a7281eb33a855baac39626b3332c395559f9b;hpb=0e9753cbccef485911e2c2de1b4cdcae592906b9;p=helm.git diff --git a/helm/software/matita/contribs/LAMBDA-TYPES/Makefile b/helm/software/matita/contribs/LAMBDA-TYPES/Makefile index a57a7281e..3e42a4ea1 100644 --- a/helm/software/matita/contribs/LAMBDA-TYPES/Makefile +++ b/helm/software/matita/contribs/LAMBDA-TYPES/Makefile @@ -1,15 +1,50 @@ +include ../Makefile.defs + DIR=$(shell basename $$PWD) -MATITAOPTIONS=-onepass + +H=@ + +MATITAOPTIONS=$(MATITAUSEROPTIONS) -onepass + +LOG = log.txt + +MMAS = $(shell find -name "*.mma") +MAS = $(MMAS:%.mma=%.ma) $(DIR) all: - ../../../matitac $(MATITAOPTIONS) + $(H)$(RM) $(LOG) + $(H)$(BIN)matitac $(MATITAOPTIONS) 2>> $(LOG) $(DIR).opt opt all.opt: - ../../../matitac.opt $(MATITAOPTIONS) + $(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) + clean: - ../../../matitaclean + $(H)$(BIN)matitaclean $(MATITAOPTIONS) + $(H)$(RM) $(MAS) clean.opt: - ../../../matitaclean.opt + $(H)$(BIN)matitaclean.opt $(MATITAOPTIONS) + $(H)$(RM) $(MAS) + depend: - ../../../matitadep + $$(H)(BIN)matitadep $(MATITAOPTIONS) depend.opt: - ../../../matitadep.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