]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/contribs/LAMBDA-TYPES/Makefile
freescale porting
[helm.git] / helm / software / matita / contribs / LAMBDA-TYPES / Makefile
index a57a7281eb33a855baac39626b3332c395559f9b..3e42a4ea18c5fd0fd93d5b0a149b47c6009aef07 100644 (file)
@@ -1,15 +1,50 @@
+include ../Makefile.defs
+
 DIR=$(shell basename $$PWD)
-MATITAOPTIONS=-onepass
+
+H=@
+
+MATITAOPTIONS=$(MATITAUSEROPTIONS) -onepass
+
+LOG = log.txt
+
+MMAS = $(shell find -name "*.mma")
+MAS = $(MMAS:%.mma=%.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)
+
+%.ma %.mma: 
+       $(H)$(RM) $(LOG)
+       $(H)$(BIN)matitac $(MATITAOPTIONS) $@ 2>> $(LOG)
+%.ma.opt: 
+       $(H)$(RM) $(LOG)
+       $(H)$(BIN)matitac.opt $(MATITAOPTIONS) $*.ma 2>> $(LOG)
+%.mma.opt: 
+       $(H)$(RM) $(LOG)
+       $(H)$(BIN)matitac.opt $(MATITAOPTIONS) $*.mma 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