1 PACKAGE = ng_disambiguation
4 INTERFACE_FILES = nCicDisambiguate.mli
6 IMPLEMENTATION_FILES = \
7 $(INTERFACE_FILES:%.mli=%.ml) nnumber_notation.ml
8 EXTRA_OBJECTS_TO_INSTALL =
9 EXTRA_OBJECTS_TO_CLEAN =
10 %.cmo: OCAMLOPTIONS += -w Ae
11 %.cmi: OCAMLOPTIONS += -w Ae
12 %.cmx: OCAMLOPTIONS += -w Ae
15 %: %.ml $(PACKAGE).cma
16 $(OCAMLC) -package helm-$(PACKAGE) -linkpkg -o $@ $<
18 %.opt: %.ml $(PACKAGE).cmxa
19 $(OCAMLOPT) -package helm-$(PACKAGE) -linkpkg -o $@ $<
21 depend.dot: $(IMPLEMENTATION_FILES) $(INTERFACE_FILES)
22 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
23 cat depend.dot | grep -v "^}$$" > /tmp/depend.dot && mv /tmp/depend.dot .
24 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
25 echo "}" >> depend.dot
26 cat depend.dot | grep -v "darkturquoise" > /tmp/depend.dot && mv /tmp/depend.dot .
28 tred < depend.dot > /tmp/depend.dot && mv /tmp/depend.dot .
29 cat depend.dot | grep -v "^}$$" > /tmp/depend.dot && mv /tmp/depend.dot .
30 echo " NCicEnvironment -> NCicTypeChecker;" >> depend.dot
31 cat depend.dot | grep -v "NCicEnvironment -> NCic;" > /tmp/depend.dot && mv /tmp/depend.dot .
32 echo "NCicLibrary [ style=dashed ];" >> depend.dot
33 echo "NCicPp [ style=dashed ];" >> depend.dot
34 echo "}" >> depend.dot
35 cat depend.dot | grep -v "rotate" > /tmp/depend.dot && mv /tmp/depend.dot .
37 depend.png depend.eps: depend.dot
38 dot -Tpng > depend.png < depend.dot
39 dot -Tps > depend.eps < depend.dot
41 include ../../Makefile.defs
42 include ../Makefile.common
44 OCAMLARCHIVEOPTIONS += -linkall