1 include ../Makefile.defs
5 MATITAOPTIONS=$(MATITAUSEROPTIONS) -onepass
7 DIR=$(shell basename $$PWD)
9 MMAS = $(shell find Legacy-2 -name "*.mma") # Base-2
10 MAS = $(MMAS:%.mma=%.ma)
11 XMAS = Legacy-2/theory.ma # Base-2/theory.ma LambdaDelta-2/theory.ma
14 $(H)$(MAKE) H=$(H) --no-print-directory build
16 $(DIR).opt opt all.opt: depends
17 $(H)$(MAKE) H=$(H) --no-print-directory build.opt
20 $(H)echo Legacy-2/theory.ma `$(BIN)matitadep.opt -stdout Legacy-2/theory.ma` >> depends
21 # $(H)echo Base-2/theory.ma `$(BIN)matitadep.opt -stdout Base-2/theory.ma` >> depends
22 $(H)$(BIN)matitac $(MATITAOPTIONS) 2> /dev/null
26 $(H)echo Legacy-2/theory.ma `$(BIN)matitadep.opt -stdout Legacy-2/theory.ma` >> depends
27 # $(H)echo Base-2/theory.ma `$(BIN)matitadep.opt -stdout Base-2/theory.ma` >> depends
28 $(H)$(BIN)matitac.opt $(MATITAOPTIONS) 2> /dev/null
32 $(H)$(BIN)matitaclean $(MATITAOPTIONS)
33 $(H)rm -f $(MAS) depends
36 $(H)$(BIN)matitaclean.opt $(MATITAOPTIONS)
37 $(H)rm -f $(MAS) depends
40 $(H)$(BIN)matitaclean.opt $(MATITAOPTIONS) $(MAS)
41 $(H)rm -f $(MAS) depends
45 $(H)$(BIN)matitadep $(foreach FILE,$(XMAS),-exclude $(FILE))
46 $(H)cat Legacy-2/depends >> depends # Base-2/depends
50 $(H)$(BIN)matitadep.opt $(foreach FILE,$(XMAS),-exclude $(FILE))
51 $(H)cat Legacy-2/depends >> depends # Base-2/depends
56 $(H)$(BIN)matitac.opt $(MATITAOPTIONS) $(word 3,$(shell grep -h $< */depends)) `$(BIN)matitadep.opt -stdout $<` 2> /dev/null
57 $(H)$(BIN)matitac.opt $(MATITAOPTIONS) -dump $@ $< 2> /dev/null
58 $(H)echo $@ `$(BIN)matitadep.opt -stdout $@` >> depends
60 include Legacy-2/.depend
61 # include Base-2/.depend