]> matita.cs.unibo.it Git - helm.git/commitdiff
Added new target libraries.ps (and .dep.dot).
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 10 Jun 2003 15:15:51 +0000 (15:15 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Tue, 10 Jun 2003 15:15:51 +0000 (15:15 +0000)
Requires the directory simplify_deps (committed under the
helm/graph/tools stuff).

helm/ocaml/.cvsignore
helm/ocaml/Makefile.in

index 42fae1139dc0e74835cafb0ea88fcd7d0843de07..bc349f4517294f3adf5522e7cd412b8f9854a1ab 100644 (file)
@@ -22,3 +22,5 @@ config.cache
 config.log
 config.status
 configure
+libraries.ps
+.dep.dot
index c0ca10b0ab4943c975a15fff12bed539766deb22..96a7522d922e05d1580d218507a1562daf5c7e0e 100644 (file)
@@ -39,3 +39,14 @@ $(MODULES:%=%.clean):
        cd $(@:%.clean=%) && make clean
 META.helm-%: META.helm-%.src
        cp $< $@ && echo "directory=\"$(CWD)/$(@:META.helm-%=%)\"" >> $@
+
+.PHONY: .dep.dot
+.dep.dot:
+       echo "digraph G {" > $@
+       echo "   rankdir = TB ;" >> $@
+       for i in $(MODULES); do ocamlfind query helm-$$i -recursive -p-format | grep helm | sed "s/^helm-/ \"$$i\" -> \"/g" | sed "s/$$/\";/g" >> $@ ; done
+       mv $@ $@.old ; ./simplify_deps/simplify_deps.opt < $@.old > $@ ; rm $@.old
+       echo "}" >> $@
+
+libraries.ps: .dep.dot
+       dot -Tps -o $@ $<