include ../Makefile.defs
H=@
+S=-s
MATITAOPTIONS=$(MATITAUSEROPTIONS) -onepass
LOG = log.txt
-DIRS = Legacy-2 Base-2
+DIRS = Legacy-2 Base-2 LambdaDelta-2
-SILENTMAKE = $(H)$(MAKE) H=$(H) -s --no-print-directory
+SILENTMAKE = $(H)$(MAKE) $(S) --no-print-directory H=$(H) S=$(S)
-MAS = $(patsubst %.mma, %.ma, $(shell find $(DIRS) -name "*.mma"))
+MAS = $(shell find $(DIRS) -mindepth 2 -name "*.ma")
all: depends
$(H)$(RM) $(LOG)
$(H)$(BIN)matitaclean.opt $(MATITAOPTIONS) $(MAS)
$(H)$(RM) $(MAS) depends
+clean.mma:
+# $(H)for FILE in */*.mma ; do if [ -e ../LambdaDelta-1/$${FILE/.mma/.ma} ] ; then true ; else rm $$FILE ; fi done
+
depend:
@echo matitadep
- $(H)$(BIN)matitadep $(foreach DIR, $(DIRS), -exclude $(DIR)/theory.ma) -exclude LambdaDelta-2/theory.ma
+ $(H)$(BIN)matitadep $(foreach DIR, $(DIRS), -exclude $(DIR)/theory.ma)
$(H)cat $(DIRS:%=%/depends) >> depends
depend.opt:
@echo matitadep.opt
- $(H)$(BIN)matitadep.opt $(foreach DIR, $(DIRS), -exclude $(DIR)/theory.ma) -exclude LambdaDelta-2/theory.ma
+ $(H)$(BIN)matitadep.opt $(foreach DIR, $(DIRS), -exclude $(DIR)/theory.ma)
$(H)cat $(DIRS:%=%/depends) >> depends
depends: depend.opt
$(H)$(BIN)matitac.opt $(MATITAOPTIONS) -dump $@ $< 2>> $(LOG)
$(H)echo $@ `$(BIN)matitadep.opt -stdout $@` >> depends
-include Legacy-2/.depend
-include Base-2/.depend
+$(foreach DIR, $(DIRS), $(eval include $(DIR)/.depend))