]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/lambda-delta/Makefile
now we take the NUri module from the helm-ng_kernel packeage
[helm.git] / helm / software / lambda-delta / Makefile
index cb895593f90196d98c1fb6e1a538dca3a188e25e..17ed69d21720b40cb4ed97ee81d78df71518ac29 100644 (file)
@@ -1,12 +1,12 @@
 MAIN = helena
 
-REQUIRES = unix str
+REQUIRES = unix str helm-ng_kernel
 
-KEEP = README automath/*.aut
+KEEP = README
 
-CLEAN = etc/log.txt
+CLEAN = etc/log.txt etc/profile.txt
 
-TAGS = test-si test-si-fast hal xml-si-drg xml-si profile
+TAGS = test-si test-si-fast hal xml-si-crg xml-si profile
 
 XMLS = xml/brg-si/grundlagen/l/not.ld.xml \
        xml/brg-si/grundlagen/l/et.ld.xml \
@@ -15,32 +15,39 @@ XMLS = xml/brg-si/grundlagen/l/not.ld.xml \
 
 include Makefile.common
 
+HOME = .
+
 INPUT = examples/grundlagen/grundlagen.aut
 
-test-si: $(MAIN).opt
+test-si: $(MAIN).opt etc
        @echo "  HELENA -p -u $(INPUT)"
        $(H)./$(MAIN).opt -p -u -S 3 $(O) $(INPUT) > etc/log.txt
 
-test-si-fast: $(MAIN).opt
+test-si-fast: $(MAIN).opt etc
        @echo "  HELENA -u -q $(INPUT)"
        $(H)./$(MAIN).opt -u -q -S 1 $(O) $(INPUT) > etc/log.txt
 
-profile: $(MAIN).opt
+profile: $(MAIN).opt etc
        @echo "  HELENA -u -q $(INPUT) (30 TIMES)"
-       $(H)for T in `seq 30`; do ./$(MAIN).opt -u -q -S 1 $(O) automath/grundlagen.aut >> etc/log.txt; done
-       $(H)grep "at exit" etc/log.txt | sort | uniq | less
+       $(H)rm etc/log.txt
+       $(H)for T in `seq 30`; do ./$(MAIN).opt -u -q -s 3 -S 1 $(O) $(INPUT) >> etc/log.txt; done
+       $(H)grep "at exit" etc/log.txt | sort | uniq > etc/profile-new.txt
 
-hal: $(MAIN).opt
+hal: $(MAIN).opt etc
        @echo "  HELENA -o -x -m $(INPUT)"
-       $(H)./$(MAIN).opt -o -x -m -s 1 -S 1 $(INPUT) > etc/log.txt
+       $(H)./$(MAIN).opt -o -x $(HOME) -m -s 1 -S 1 $(INPUT) > etc/log.txt
 
-xml-si: $(MAIN).opt
+xml-si: $(MAIN).opt etc
        @echo "  HELENA -u -x -s 2 $(INPUT)"
-       $(H)./$(MAIN).opt -u -x -s 2 -S 1 $(INPUT) > etc/log.txt
+       $(H)./$(MAIN).opt -u -x $(HOME) -s 2 -S 1 $(INPUT) > etc/log.txt
 
-xml-si-drg: $(MAIN).opt
+xml-si-crg: $(MAIN).opt etc
        @echo "  HELENA -u -x -s 1 $(INPUT)"
-       $(H)./$(MAIN).opt -u -x -s 1 -S 1 $(INPUT) > etc/log.txt
+       $(H)./$(MAIN).opt -u -x $(HOME) -s 1 -S 1 $(INPUT) > etc/log.txt
+
+etc:
+       @echo "  MKDIR etc"
+       $(H)mkdir etc
 
 %.ld: BASEURL = --stringparam baseurl $(LDDLURL)
 
@@ -71,18 +78,18 @@ install-xml: etc/make-html.sh
 
 # old targets ##########################################################
 
-test: $(MAIN).opt
+test: $(MAIN).opt etc
        @echo "  HELENA -o -p $(INPUT)"
        $(H)./$(MAIN).opt -o -p -S 3 $(O) $(INPUT) > etc/log.txt
 
-test-si-old: $(MAIN).opt
+test-si-old: $(MAIN).opt etc
        @echo "  HELENA -o -p -u $(INPUT)"
        $(H)./$(MAIN).opt -o -p -u -S 3 $(O) $(INPUT) > etc/log.txt
 
-test-si-fast-old: $(MAIN).opt
+test-si-fast-old: $(MAIN).opt etc
        @echo "  HELENA -o -u -q $(INPUT)"
        $(H)./$(MAIN).opt -o -u -q -S 1 $(O) $(INPUT) > etc/log.txt
 
-xml-si-old: $(MAIN).opt
+xml-si-old: $(MAIN).opt etc
        @echo "  HELENA -o -u -x -s 2 $(INPUT)"
-       $(H)./$(MAIN).opt -o -u -x -s 2 -S 1 $(INPUT) > etc/log.txt
+       $(H)./$(MAIN).opt -o -u -x $(HOME) -s 2 -S 1 $(INPUT) > etc/log.txt