]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/papers/use_case/stats/Makefile
* compressed statistics committed
[helm.git] / helm / papers / use_case / stats / Makefile
index 6db5d94691cfb9c3cddf30554c62b3a28b9974c0..390a3059a8604a8e9b31e106e9e742c1dc6870e6 100644 (file)
@@ -1,15 +1,33 @@
 
+TARGETS = con ind var body types proof_tree
+
+STATS_TARGETS = \
+  $(TARGETS:%=stats_%.xml) \
+  stats_theories.xml
+
+all_xml: $(STATS_TARGETS)
+
+all_html: $(STATS_TARGETS:%.xml=%.html)
+
 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_theories.xml:
+       @echo "<statistics>" >$@
+       @find /local/helm/library/theories -name "*.xml" -type f -exec ./stats.sh {} \; >>$@
+       @echo "</statistics>" >>$@
 
-stats.html: stats.xml
+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}