-%.ma: %.mma
- ../../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
-
-include Base-2/.depend
+ifneq ($(strip $(MAS)),)
+clean.ma:
+ $(H)$(BIN)matitaclean.opt $(MATITAOPTIONS) $(MAS)
+ $(H)$(RM) $(MAS)
+else
+clean.ma:
+ $(H)echo no files to clean
+endif