XMAS = Base-2/theory.ma
$(DIR) all: depends
- $(H)$(MAKE) --no-print-directory build
+ $(H)$(MAKE) H=$(H) --no-print-directory build
$(DIR).opt opt all.opt: depends
- $(H)$(MAKE) --no-print-directory build.opt
+ $(H)$(MAKE) H=$(H) --no-print-directory build.opt
build: $(MAS)
$(H)$echo Base-2/theory.ma `../../matitadep.opt -stdout Base-2/theory.ma` >> depends
depends: depend.opt
%.ma: %.mma
- $(H)../../matitac.opt $(MATITAOPTIONS) `../../matitadep.opt -stdout $<` 2> /dev/null
+ ../../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