5 DIR=$(shell basename $$PWD)
7 MMAS = $(shell find Base-2 -name "*.mma")
8 MAS = $(MMAS:%.mma=%.ma)
9 XMAS = Base-2/theory.ma
12 $(H)$(MAKE) --no-print-directory build
14 $(DIR).opt opt all.opt: depends
15 $(H)$(MAKE) --no-print-directory build.opt
18 $(H)$echo Base-2/theory.ma `../../matitadep.opt -stdout Base-2/theory.ma` >> depends
19 $(H)../../matitac $(MATITAOPTIONS) 2> /dev/null
23 $(H)echo Base-2/theory.ma `../../matitadep.opt -stdout Base-2/theory.ma` >> depends
24 $(H)../../matitac.opt $(MATITAOPTIONS) 2> /dev/null
29 $(H)rm -f $(MAS) depends
32 $(H)../../matitaclean.opt
33 $(H)rm -f $(MAS) depends
36 $(H)../../matitaclean.opt $(MAS)
37 $(H)rm -f $(MAS) depends
41 $(H)../../matitadep $(foreach FILE,$(XMAS),-exclude $(FILE))
42 $(H)cat Base-2/depends >> depends
45 $(H)../../matitadep.opt $(foreach FILE,$(XMAS),-exclude $(FILE))
46 $(H)cat Base-2/depends >> depends
51 $(H)../../matitac.opt $(MATITAOPTIONS) `../../matitadep.opt -stdout $<` 2> /dev/null
52 $(H)../../matitac.opt $(MATITAOPTIONS) -dump $@ $< 2> /dev/null
53 $(H)echo $@ `../../matitadep.opt -stdout $@` >> depends
55 include Base-2/.depend