]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_kernel/Makefile
in the new kernel you can type Type[i] to mean Type_i, and Type is interpreted as
[helm.git] / helm / software / components / ng_kernel / Makefile
index 4e78c8c14551e9081ea2156a684f442175ee3385..fedcaa4d8b3d6ec9fdbf3fef3ad03013fa627da6 100644 (file)
@@ -4,21 +4,24 @@ PREDICATES =
 INTERFACE_FILES = \
        nUri.mli \
        nReference.mli \
-       nCicPp.mli \
-       oCic2NCic.mli  \
        nCicUtils.mli \
        nCicSubstitution.mli \
+       oCic2NCic.mli  \
+       nCic2OCic.mli \
+       nCicLibrary.mli \
+       nCicPp.mli \
        nCicEnvironment.mli \
        nCicReduction.mli \
        nCicTypeChecker.mli \
-       oCicTypeChecker.mli \
-       nCic2OCic.mli
+       nCicUntrusted.mli
 
 IMPLEMENTATION_FILES = \
   nCic.ml $(INTERFACE_FILES:%.mli=%.ml)
 EXTRA_OBJECTS_TO_INSTALL = 
 EXTRA_OBJECTS_TO_CLEAN =
-OCAMLOPTIONS += -w Ae
+%.cmo: OCAMLOPTIONS += -w Ae
+%.cmi: OCAMLOPTIONS += -w Ae
+%.cmx: OCAMLOPTIONS += -w Ae
 
 all: rt check
 %: %.ml $(PACKAGE).cma
@@ -27,6 +30,26 @@ all.opt opt: rt.opt check.opt
 %.opt: %.ml $(PACKAGE).cmxa
        $(OCAMLOPT) -package helm-$(PACKAGE) -linkpkg -o $@ $<
        
+depend.dot: $(IMPLEMENTATION_FILES) $(INTERFACE_FILES)
+       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
+       cat depend.dot | grep -v "^}$$" > /tmp/depend.dot && mv /tmp/depend.dot .
+       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
+       echo "}" >> depend.dot
+       cat depend.dot | grep -v "darkturquoise" > /tmp/depend.dot && mv /tmp/depend.dot .
+       cat depend.dot
+       tred < depend.dot > /tmp/depend.dot && mv /tmp/depend.dot .
+       cat depend.dot | grep -v "^}$$" > /tmp/depend.dot && mv /tmp/depend.dot .
+       echo "  NCicEnvironment -> NCicTypeChecker;" >> depend.dot
+       cat depend.dot | grep -v "NCicEnvironment -> NCic;" > /tmp/depend.dot && mv /tmp/depend.dot .
+       echo "NCicLibrary [ style=dashed ];" >> depend.dot
+       echo "NCicPp [ style=dashed ];" >> depend.dot
+       echo "}" >> depend.dot
+       cat depend.dot | grep -v "rotate" > /tmp/depend.dot && mv /tmp/depend.dot .
+
+depend.png depend.eps: depend.dot
+       dot -Tpng > depend.png < depend.dot
+       dot -Tps > depend.eps < depend.dot
 
 include ../../Makefile.defs
 include ../Makefile.common
+