Skip to content
Browse files

moving main_gui.ml, to be able to use 'make dot'

  • Loading branch information...
1 parent 3ac3b5b commit e07dec2568704afaf1c6834481211c0cfeab2f37 pad committed
Showing with 28 additions and 2 deletions.
  1. +13 −2 Makefile
  2. +15 −0 Makefile.common
  3. 0 { → gui}/main_gui.ml
View
15 Makefile
@@ -230,7 +230,7 @@ MAKESUBDIRS=commons \
$(FACEBOOKDIR)
INCLUDEDIRS=$(MAKESUBDIRS) \
- commons/ocamlextra commons/lib-json commons/lib-xml \
+ commons/ocamlextra commons/lib-json commons/lib-xml commons/lib-sexp \
$(GTKINCLUDE) $(CAIROINCLUDE) $(PCREINCLUDE)
##############################################################################
@@ -423,7 +423,7 @@ clean::
rm -f pfff_db_light
#------------------------------------------------------------------------------
-# pfff_browser target
+# OBSOLETE: pfff_browser target
#------------------------------------------------------------------------------
SYSLIBS2=external/ocamlgtk/src/lablgtk.cma
LIBS2=commons/commons_gui.cma gui/gui.cma
@@ -574,6 +574,17 @@ pull:
git pull
cd facebook; git pull
+#DIRS= $(filter-out commons external/ocamlgtk/src external/ocamlpcre external/ocamlcairo, $(MAKESUBDIRS))
+DIRS=lang_php/parsing
+SRC2=$(SRC) $(wildcard main_*.ml)
+dotall:
+ ocamldoc -I +threads $(INCLUDES) $(DIRS:=/*.ml) $(SRC2) -dot -dot-reduce
+ dot -Tps ocamldoc.out > dot.ps
+ mv dot.ps Fig_graph_ml.ps
+ ps2pdf Fig_graph_ml.ps
+ rm -f Fig_graph_ml.ps
+
+
##############################################################################
# Pad specific rules
##############################################################################
View
15 Makefile.common
@@ -79,6 +79,21 @@ ovisual:
clean::
rm -f TAGS
+dot:
+ $(OCAMLDOC) -I +threads $(SRC) -dot -dot-reduce
+ dot -Tps ocamldoc.out > dot.ps
+ mv dot.ps Fig_graph_ml.ps
+ ps2pdf Fig_graph_ml.ps
+ rm -f Fig_graph_ml.ps
+
+doti:
+ $(OCAMLDOC) -I +threads $(SRC:.ml=.mli) -dot
+ dot -Tps ocamldoc.out > dot.ps
+ mv dot.ps Fig_graph_mli.ps
+ ps2pdf Fig_graph_mli.ps
+ rm -f Fig_graph_mli.ps
+
+
##############################################################################
# literate rules
##############################################################################
View
0 main_gui.ml → gui/main_gui.ml
File renamed without changes.

0 comments on commit e07dec2

Please sign in to comment.
Something went wrong with that request. Please try again.