]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/contribs/LAMBDA-TYPES/Makefile
...
[helm.git] / helm / software / matita / contribs / LAMBDA-TYPES / Makefile
index a57a7281eb33a855baac39626b3332c395559f9b..28fe09079f84806f751a0a68517b5a4aec05b707 100644 (file)
@@ -1,15 +1,39 @@
+include ../Makefile.defs
+
 DIR=$(shell basename $$PWD)
-MATITAOPTIONS=-onepass
+
+H=@
+
+MATITAOPTIONS=$(MATITAUSEROPTIONS) -onepass
+
+LOG = log.txt
+
+DEVELS = Legacy-2 Base-2 LambdaDelta-2
+
+MAS = $(shell find $(DEVELS) -mindepth 2 -name "*.ma")
 
 $(DIR) all:
-       ../../../matitac $(MATITAOPTIONS)
+       $(H)$(RM) $(LOG)
+       $(H)$(BIN)matitac $(MATITAOPTIONS) 2>> $(LOG)
 $(DIR).opt opt all.opt:
-       ../../../matitac.opt $(MATITAOPTIONS)
+       $(H)$(RM) $(LOG)
+       $(H)$(BIN)matitac.opt $(MATITAOPTIONS) 2>> $(LOG)
 clean:
-       ../../../matitaclean
+       $(H)$(BIN)matitaclean $(MATITAOPTIONS)
+       $(H)$(RM) $(MAS)
 clean.opt:
-       ../../../matitaclean.opt
+       $(H)$(BIN)matitaclean.opt $(MATITAOPTIONS)
+       $(H)$(RM) $(MAS)
 depend:
-       ../../../matitadep
+       $$(H)(BIN)matitadep $(MATITAOPTIONS)
 depend.opt:
-       ../../../matitadep.opt
+       $(H)$(BIN)matitadep.opt $(MATITAOPTIONS)
+
+ifneq ($(strip $(MAS)),)
+clean.ma:
+       $(H)$(BIN)matitaclean.opt $(MATITAOPTIONS) $(MAS)
+       $(H)$(RM) $(MAS)
+else
+clean.ma:
+       $(H)echo no files to clean
+endif