]> matita.cs.unibo.it Git - helm.git/blob - matita/components/ng_kernel/Makefile
- a reinforement in a lemma on ldrop allows to prove a lemma on lsx :)
[helm.git] / matita / components / ng_kernel / Makefile
1 PACKAGE = ng_kernel
2 PREDICATES =
3
4 INTERFACE_FILES = \
5         nUri.mli \
6         nReference.mli \
7         nCicUtils.mli \
8         nCicSubstitution.mli \
9         nCicEnvironment.mli \
10         nCicReduction.mli \
11         nCicTypeChecker.mli \
12         nCicUntrusted.mli \
13         nCicPp.mli
14
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
22
23 include ../../Makefile.defs
24 include ../Makefile.common
25
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 .
32         cat 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 .
41
42 depend.png depend.eps: depend.dot
43         dot -Tpng > depend.png < depend.dot
44         dot -Tps > depend.eps < depend.dot