Add config.mli to describe Config module.
[guestfs-browser.git] / Makefile.am
index 967dfac..066ece8 100644 (file)
@@ -24,6 +24,7 @@ CLEANFILES = *.cmi *.cmo *.cmx *.o guestfs-browser
 SOURCES = \
        cmdline.mli \
        cmdline.ml \
+       config.mli \
        config.ml \
        filetree.mli \
        filetree.ml \
@@ -48,14 +49,19 @@ OBJECTS = \
 
 bin_SCRIPTS = guestfs-browser
 
+OCAMLPACKAGES = libvirt,guestfs,lablgtk2,extlib,xml-light,threads
 OCAMLCFLAGS = \
        -g \
        -warn-error A \
        -thread \
-       -package libvirt,guestfs,lablgtk2,extlib,xml-light,threads \
+       -package $(OCAMLPACKAGES) \
        -predicates threads
-
 OCAMLOPTFLAGS = $(OCAMLCFLAGS)
+OCAMLDOCFLAGS = \
+       -package $(OCAMLPACKAGES) \
+       -predicates threads \
+       -I +threads \
+       -sort -html
 
 guestfs-browser: $(OBJECTS)
        $(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) \
@@ -80,6 +86,13 @@ throbber.ml: Throbber.png Throbber.gif
 .ml.cmx:
        $(OCAMLFIND) ocamlopt $(OCAMLCFLAGS) -c $< -o $@
 
+# Convert internal documentation to HTML.
+docs:
+       rm -rf doc
+       mkdir -p doc
+       $(OCAMLFIND) ocamldoc -d doc $(OCAMLDOCFLAGS) $(SOURCES)
+
+# Dependencies.
 depend: .depend
 
 .depend: $(wildcard *.mli) $(wildcard *.ml)
@@ -88,3 +101,5 @@ depend: .depend
        mv $@-t $@
 
 include .depend
+
+.PHONY: depend docs