]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/contribs/LAMBDA-TYPES/Makefile
dependences needed a fix :)
[helm.git] / helm / software / matita / contribs / LAMBDA-TYPES / Makefile
index a57a7281eb33a855baac39626b3332c395559f9b..17478c3530b2d5cba427466be8097df6ded18de1 100644 (file)
@@ -1,15 +1,30 @@
 DIR=$(shell basename $$PWD)
-MATITAOPTIONS=-onepass
 
-$(DIR) all:
-       ../../../matitac $(MATITAOPTIONS)
-$(DIR).opt opt all.opt:
-       ../../../matitac.opt $(MATITAOPTIONS)
+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
 clean:
-       ../../../matitaclean
+       ../../matitaclean
+       rm -f $(MAS)
+       $(MAKE) depend
 clean.opt:
-       ../../../matitaclean.opt
+       ../../matitaclean.opt
+       rm -f $(MAS)
+       $(MAKE) depend.opt
 depend:
-       ../../../matitadep
+       ../../matitadep
+       cat Base-2/depends_mma >> depends
 depend.opt:
-       ../../../matitadep.opt
+       ../../matitadep.opt
+       cat Base-2/depends_mma >> depends
+
+include Base-2/.depend