DISTDIR = uwobo-$(VERSION)
REQUIRES = http gdome2 gdome2-xslt pcre unix
COMMONOPTS = -package "$(REQUIRES)" -pp camlp4o
-OCAMLC = ocamlfind ocamlc $(COMMONOPTS)
-OCAMLOPT = ocamlfind ocamlopt $(COMMONOPTS)
-OCAMLDEP = ocamlfind ocamldep $(COMMONOPTS)
+OCAMLFIND = ocamlfind
+OCAMLC = $(OCAMLFIND) ocamlc $(COMMONOPTS)
+OCAMLOPT = $(OCAMLFIND) ocamlopt $(COMMONOPTS)
+OCAMLDEP = $(OCAMLFIND) ocamldep $(COMMONOPTS)
+OCAMLDOC = \
+ ocamldoc \
+ $(shell $(OCAMLFIND) query -i-format http) \
+ $(shell $(OCAMLFIND) query -i-format gdome2) \
+ $(shell $(OCAMLFIND) query -i-format gdome2-xslt) \
+ $(shell $(OCAMLFIND) query -i-format pcre) \
+ $(shell $(OCAMLFIND) query -i-format unix)
MODULES = uwobo_common uwobo_styles uwobo_logger uwobo_engine
OBJS = $(patsubst %,%.cmo,$(MODULES))
OBJSOPT = $(patsubst %,%.cmx,$(MODULES))
uwobo.opt: $(OBJSOPT) uwobo.ml
$(OCAMLOPT) -linkpkg -o $@ $^
+uwobo.dot: *.ml *.mli
+ $(OCAMLDOC) -dot -o $@ $^
+
distclean: clean
clean:
- rm -f *.cm[aiox] *.o uwobo{,.opt}
+ rm -f *.cm[aiox] *.o uwobo{,.opt,.dot}
dist: distclean depend
mkdir $(DISTDIR)/
cp \