1 include ../Makefile.defs
5 MATITAOPTIONS=$(MATITAUSEROPTIONS) -onepass
7 DIR=$(shell basename $$PWD)
9 MMAS = $(shell find Legacy-2 -name "*.mma")
11 MAS = $(MMAS:%.mma=%.ma)
12 XMAS = Legacy-2/theory.ma Base-2/theory.ma LambdaDelta-2/theory.ma
15 $(H)$(MAKE) H=$(H) --no-print-directory build
17 $(DIR).opt opt all.opt: depends
18 $(H)$(MAKE) H=$(H) --no-print-directory build.opt
21 $(H)echo Legacy-2/theory.ma `$(BIN)matitadep.opt -stdout Legacy-2/theory.ma` >> depends
22 # $(H)echo Base-2/theory.ma `$(BIN)matitadep.opt -stdout Base-2/theory.ma` >> depends
23 $(H)$(BIN)matitac $(MATITAOPTIONS) 2> /dev/null
27 $(H)echo Legacy-2/theory.ma `$(BIN)matitadep.opt -stdout Legacy-2/theory.ma` >> depends
28 # $(H)echo Base-2/theory.ma `$(BIN)matitadep.opt -stdout Base-2/theory.ma` >> depends
29 $(H)$(BIN)matitac.opt $(MATITAOPTIONS) 2> /dev/null
33 $(H)$(BIN)matitaclean $(MATITAOPTIONS)
34 $(H)rm -f $(MAS) depends
37 $(H)$(BIN)matitaclean.opt $(MATITAOPTIONS)
38 $(H)rm -f $(MAS) depends
41 $(H)$(BIN)matitaclean.opt $(MATITAOPTIONS) $(MAS)
42 $(H)rm -f $(MAS) depends
46 $(H)$(BIN)matitadep $(foreach FILE,$(XMAS),-exclude $(FILE))
47 $(H)cat Legacy-2/depends >> depends
52 $(H)$(BIN)matitadep.opt $(foreach FILE,$(XMAS),-exclude $(FILE))
53 $(H)cat Legacy-2/depends >> depends
59 $(H)$(BIN)matitac.opt $(MATITAOPTIONS) $(word 3,$(shell grep -h $< */depends)) `$(BIN)matitadep.opt -stdout $<` 2> /dev/null
60 $(H)$(BIN)matitac.opt $(MATITAOPTIONS) -dump $@ $< 2> /dev/null
61 $(H)echo $@ `$(BIN)matitadep.opt -stdout $@` >> depends
63 include Legacy-2/.depend
64 # include Base-2/.depend