]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/matita/contribs/procedural/Makefile.common
....
[helm.git] / helm / software / matita / contribs / procedural / Makefile.common
index a6bc20571819a18e0b212089aeb405d50c6580ed..a169ea049f0882ffc6208c34a952e773bb4a9884 100644 (file)
@@ -4,12 +4,8 @@ DIR = $(shell basename $$PWD)
 
 H = @
 
-MATITAOPTIONS =
-
 TRANSCRIPT = $(BIN)../components/binaries/transcript/transcript.opt
 
-OPTIONS =
-
 LOG = log.txt
 
 MMAS = $(shell find -name "*.mma")
@@ -21,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)
@@ -42,4 +52,10 @@ clean.ma:
 endif
 
 mma: $(DEVEL).conf.xml clean.ma
-       $(H)$(TRANSCRIPT) $(OPTIONS) -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)
+