]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/contribs/LAMBDA-TYPES/Makefile
uri renaming and new nodes count
[helm.git] / helm / software / matita / contribs / LAMBDA-TYPES / Makefile
index 17478c3530b2d5cba427466be8097df6ded18de1..fef14b2b888584258cffccf0ee41955d14617cd2 100644 (file)
@@ -1,30 +1,38 @@
+include ../Makefile.defs
+
 DIR=$(shell basename $$PWD)
 
+H=@
+
+MATITAOPTIONS=$(MATITAUSEROPTIONS) -onepass
+
+LOG = log.txt
+
 MMAS = $(shell find -name "*.mma")
 MAS = $(MMAS:%.mma=%.ma)
 
-%.ma: %.mma
-       ../../matitac.opt $< 2> /dev/null
-       ../../matitac.opt -dump $@ $< 2> /dev/null
-       $(MAKE) depend.opt
-
-$(DIR) all: $(MAS)
-       ../../matitac
-$(DIR).opt opt all.opt: $(MAS)
-       ../../matitac.opt
+$(DIR) all:
+       $(H)$(RM) $(LOG)
+       $(H)$(BIN)matitac $(MATITAOPTIONS) 2>> $(LOG)
+$(DIR).opt opt all.opt:
+       $(H)$(RM) $(LOG)
+       $(H)$(BIN)matitac.opt $(MATITAOPTIONS) 2>> $(LOG)
 clean:
-       ../../matitaclean
-       rm -f $(MAS)
-       $(MAKE) depend
+       $(H)$(BIN)matitaclean $(MATITAOPTIONS)
+       $(H)$(RM) $(MAS)
 clean.opt:
-       ../../matitaclean.opt
-       rm -f $(MAS)
-       $(MAKE) depend.opt
+       $(H)$(BIN)matitaclean.opt $(MATITAOPTIONS)
+       $(H)$(RM) $(MAS)
 depend:
-       ../../matitadep
-       cat Base-2/depends_mma >> depends
+       $$(H)(BIN)matitadep $(MATITAOPTIONS)
 depend.opt:
-       ../../matitadep.opt
-       cat Base-2/depends_mma >> depends
+       $(H)$(BIN)matitadep.opt $(MATITAOPTIONS)
 
-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