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