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=a2a3b8eecf9a47b97b76df10c30ca63933b0e04c;hpb=a2257181cddf84a3b831c50398f5b13e2b79ac3a;p=helm.git diff --git a/helm/software/matita/contribs/LAMBDA-TYPES/Makefile b/helm/software/matita/contribs/LAMBDA-TYPES/Makefile index a2a3b8eec..3e42a4ea1 100644 --- a/helm/software/matita/contribs/LAMBDA-TYPES/Makefile +++ b/helm/software/matita/contribs/LAMBDA-TYPES/Makefile @@ -1,52 +1,50 @@ +include ../Makefile.defs + +DIR=$(shell basename $$PWD) + H=@ -MATITAOPTIONS=-onepass +MATITAOPTIONS=$(MATITAUSEROPTIONS) -onepass -DIR=$(shell basename $$PWD) +LOG = log.txt -MMAS = $(shell find Base-2 -name "*.mma") +MMAS = $(shell find -name "*.mma") MAS = $(MMAS:%.mma=%.ma) -XMAS = Base-2/theory.ma pippo - -%.ma: %.mma - $(H)../../matitac.opt $(MATITAOPTIONS) `../../matitadep.opt -stdout $<` 2> /dev/null - $(H)../../matitac.opt $(MATITAOPTIONS) -dump $@ $< 2> /dev/null - $(H)$(MAKE) --no-print-directory depend.opt - -$(DIR) all: $(MAS) - $(H)$(MAKE) --no-print-directory depend.full - $(H)../../matitac $(MATITAOPTIONS) 2> /dev/null -$(DIR).opt opt all.opt: $(MAS) - $(H)$(MAKE) --no-print-directory depend.full.opt - $(H)../../matitac.opt $(MATITAOPTIONS) 2> /dev/null + +$(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) + clean: - $(H)../../matitaclean - $(H)rm -f $(MAS) - $(H)$(MAKE) --no-print-directory depend + $(H)$(BIN)matitaclean $(MATITAOPTIONS) + $(H)$(RM) $(MAS) clean.opt: - $(H)../../matitaclean.opt - $(H)rm -f $(MAS) - $(H)$(MAKE) --no-print-directory depend.opt -clean.ma: - $(H)../../matitaclean.opt $(MAS) - $(H)rm -f $(MAS) - $(H)$(MAKE) --no-print-directory depend.opt + $(H)$(BIN)matitaclean.opt $(MATITAOPTIONS) + $(H)$(RM) $(MAS) depend: - @echo matitadep - $(H)../../matitadep $(foreach FILE,$(XMAS),-exclude $(FILE)) - $(H)cat Base-2/depends >> depends + $$(H)(BIN)matitadep $(MATITAOPTIONS) depend.opt: - @echo matitadep.opt - $(H)../../matitadep.opt $(foreach FILE,$(XMAS),-exclude $(FILE)) - $(H)cat Base-2/depends >> depends -depend.full: - @echo matitadep - $(H)../../matitadep - $(H)cat Base-2/depends >> depends -depend.full.opt: - @echo matitadep.opt - $(H)../../matitadep.opt - $(H)cat Base-2/depends >> depends - -include Base-2/.depend + $(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