15 IMPLEMENTATION_FILES = \
16 nCic.ml $(INTERFACE_FILES:%.mli=%.ml)
17 EXTRA_OBJECTS_TO_INSTALL =
18 EXTRA_OBJECTS_TO_CLEAN =
19 %.cmo: OCAMLOPTIONS += -w Ae
20 %.cmi: OCAMLOPTIONS += -w Ae
21 %.cmx: OCAMLOPTIONS += -w Ae
23 include ../../Makefile.defs
24 include ../Makefile.common
26 depend.dot: $(IMPLEMENTATION_FILES) $(INTERFACE_FILES)
27 ocamldoc -o depend.dot -rectypes -I ../extlib/ -I ../cic -I ../cic_proof_checking/ -I ../urimanager/ -I ../logger/ -I ../registry/ -I ../getter/ -I ../hmysql/ -I ../library/ -I ../metadata/ -dot nUri.ml nReference.ml nCic.ml nCicPp.ml nCicEnvironment.ml nCicSubstitution.ml nCicReduction.ml nCicTypeChecker.ml nCicUtils.ml nCicLibrary.ml
28 cat depend.dot | grep -v "^}$$" > /tmp/depend.dot && mv /tmp/depend.dot .
29 for i in `cat depend.dot | grep darkturquoise | cut -d '"' -f 2`; do j=`echo $$i | sed s/^N/n/g`; size=`cat $$j.ml | wc -l`; funs=`cat $$j.mli | grep "^val " | wc -l`; size=`expr $$size - 13`; echo "\"$$i\" [ label=\"$$i\\n$$size lines,\\n$$funs functions\"];"; done >> depend.dot
30 echo "}" >> depend.dot
31 cat depend.dot | grep -v "darkturquoise" > /tmp/depend.dot && mv /tmp/depend.dot .
33 tred < depend.dot > /tmp/depend.dot && mv /tmp/depend.dot .
34 cat depend.dot | grep -v "^}$$" > /tmp/depend.dot && mv /tmp/depend.dot .
35 echo " NCicEnvironment -> NCicTypeChecker;" >> depend.dot
36 cat depend.dot | grep -v "NCicEnvironment -> NCic;" > /tmp/depend.dot && mv /tmp/depend.dot .
37 echo "NCicLibrary [ style=dashed ];" >> depend.dot
38 echo "NCicPp [ style=dashed ];" >> depend.dot
39 echo "}" >> depend.dot
40 cat depend.dot | grep -v "rotate" > /tmp/depend.dot && mv /tmp/depend.dot .
42 depend.png depend.eps: depend.dot
43 dot -Tpng > depend.png < depend.dot
44 dot -Tps > depend.eps < depend.dot