-include ../../../../Makefile.defs
-
-H=@
-
-MATITAC = $(RT_BASE_DIR)/matitac.opt
+DIR=$(shell basename $$PWD)
MMAS = $(shell find -name "*.mma")
MAS = $(MMAS:%.mma=%.ma)
-all: OPTIONS = -bench
-
-log: OPTIONS = >> tmp.txt 2>&1
-
-all: $(MAS)
-
-log: $(MAS)
- $(H)mv tmp.txt log.txt
-
-clean:
- $(H)rm -f $(MAS)
-
%.ma: %.mma
- $(H)$(MATITAC) -dump $@ $< $(OPTIONS)
-
-include depend
-
-.DELETE_ON_ERROR:
+ ../../../matitac.opt -dump $@ $< 2>/dev/null
+ $(MAKE) depend.opt
+ ../../../matitac.opt $@
+
+$(DIR) all: $(MAS)
+ ../../../matitac
+$(DIR).opt opt all.opt: $(MAS)
+ ../../../matitac.opt
+clean:
+ ../../../matitaclean
+ rm -f $(MAS)
+ $(MAKE) depend
+clean.opt:
+ ../../../matitaclean.opt
+ rm -f $(MAS)
+ $(MAKE) depend.opt
+depend:
+ ../../../matitadep
+ cat depends_mma >> depends
+depend.opt:
+ ../../../matitadep.opt
+ cat depends_mma >> depends
+
+include .depend