]> matita.cs.unibo.it Git - helm.git/commitdiff
* snapshot
authorLuca Padovani <luca.padovani@unito.it>
Tue, 9 Nov 2004 13:56:59 +0000 (13:56 +0000)
committerLuca Padovani <luca.padovani@unito.it>
Tue, 9 Nov 2004 13:56:59 +0000 (13:56 +0000)
helm/papers/use_case/stats/Makefile
helm/papers/use_case/stats/mkhtml.xsl

index 6db5d94691cfb9c3cddf30554c62b3a28b9974c0..fdfdb9ff09078f92d14ad6eee604df5945815e8c 100644 (file)
@@ -1,15 +1,31 @@
 
+TARGETS = con ind var body types proof_tree
+
+STATS_TARGETS = \
+  $(TARGETS:%=stats_%.xml) \
+  stats_theories.xml
+
+all: $(STATS_TARGETS)
+
 stats: stats.cc
        g++ -o $@ `pkg-config gdome2-cpp-smart --cflags --libs` $<
 
-stats.xml:
-       echo "<statistics>" >stats.xml
-       find /local/helm/library/coq_contribs/$(CONTRIB) -type f -exec ./stats.sh {} \; >>stats.xml
-       echo "</statistics>" >>stats.xml
+stats_%.xml:
+       @echo "<statistics>" >$@
+       @find /local/helm/library/coq_contribs/$(CONTRIB) -name "*."$(@:stats_%.xml=%)".xml.gz" -type f -exec ./stats.sh {} \; >>$@
+       @echo "</statistics>" >>$@
 
-stats.html: stats.xml
+stats_theories.xml:
+       @echo "<statistics>" >$@
+       @find /local/helm/library/theories -name "*.xml" -type f -exec ./stats.sh {} \; >>$@
+       @echo "</statistics>" >>$@
+
+stats_%.html: stats_%.xml
        xsltproc mkhtml.xsl $< >$@
 
-stats.txt: stats.html
-       w3m -dump a.html > a.txt
+stats_%.txt: stats_%.html
+       w3m -cols 132 -dump $< >$@
+
+clean:
+       rm -f stats.{xml,html,txt}
 
index b372db3fa10e014669ab8fe08afca61b894607ef..a5c163a126a96e88da03ef792d97bd8daea63a99 100644 (file)
@@ -14,8 +14,8 @@
       <table border="1">
         <tr>
          <th>N</th>
-         <th>Nodes</th>
          <th>Size (bytes)</th>
+         <th>Nodes</th>
          <th>Inner nodes/Leaf elements/Text nodes</th>
          <th>Depth (max/leaf avg)</th>
          <th>Width (max/inner avg)</th>