]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/contribs/procedural/Makefile.common
freescale porting, work in progress
[helm.git] / helm / software / matita / contribs / procedural / Makefile.common
index ec1cb7d1a65928df541e566025fa344ac244b755..a169ea049f0882ffc6208c34a952e773bb4a9884 100644 (file)
@@ -1,10 +1,8 @@
 BIN = ../../../
 
-DIR=$(shell basename $$PWD)
+DIR = $(shell basename $$PWD)
 
-H=@
-
-MATITAOPTIONS=
+H = @
 
 TRANSCRIPT = $(BIN)../components/binaries/transcript/transcript.opt
 
@@ -19,6 +17,20 @@ $(DIR) all:
 $(DIR).opt opt all.opt:
        $(H)$(RM) $(LOG)
        $(H)$(BIN)matitac.opt $(MATITAOPTIONS) 2>> $(LOG)
+
+%.ma: 
+       $(H)$(RM) $(LOG)
+       $(H)$(BIN)matitac $(MATITAOPTIONS) $*.mma 2>> $(LOG)
+%.mo: 
+       $(H)$(RM) $(LOG)
+       $(H)$(BIN)matitac $(MATITAOPTIONS) $*.ma 2>> $(LOG)
+%.ma.opt: 
+       $(H)$(RM) $(LOG)
+       $(H)$(BIN)matitac.opt $(MATITAOPTIONS) $*.mma 2>> $(LOG)
+%.mo.opt: 
+       $(H)$(RM) $(LOG)
+       $(H)$(BIN)matitac.opt $(MATITAOPTIONS) $*.ma 2>> $(LOG)
+
 clean:
        $(H)$(BIN)matitaclean $(MATITAOPTIONS)
        $(H)$(RM) $(MAS)
@@ -26,7 +38,7 @@ clean.opt:
        $(H)$(BIN)matitaclean.opt $(MATITAOPTIONS)
        $(H)$(RM) $(MAS)
 depend:
-       $$(H)(BIN)matitadep $(MATITAOPTIONS)
+       $(H)(BIN)matitadep $(MATITAOPTIONS)
 depend.opt:
        $(H)$(BIN)matitadep.opt $(MATITAOPTIONS)
 
@@ -40,4 +52,10 @@ clean.ma:
 endif
 
 mma: $(DEVEL).conf.xml clean.ma
-       $(H)$(TRANSCRIPT) -C $(BIN) $(DEVEL)
+       $(H)$(TRANSCRIPT) $(TRANSCRIPTOPTIONS) -C $(BIN) $(DEVEL)
+
+%.ts: $(DEVEL).conf.xml
+       $(H)$(BIN)matitaclean.opt $(MATITAOPTIONS) $*.ma
+       $(H)$(RM) $*.ma
+       $(H)$(TRANSCRIPT) $(TRANSCRIPTOPTIONS) -C $(BIN) $* $(DEVEL)
+