INSTALL = @INSTALL@
+OCAMLDOC = @OCAMLDOC@
+OCAMLDOCFLAGS += -html -sort -package bitstring -I lib
+OCAMLDOCFILES := $(wildcard lib/diskimage*.mli) lib/int63.mli
+
SUBDIRS = lib virt-df diskzip
-all opt depend install doc:
+all opt depend install:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d $@; \
if [ $$? -ne 0 ]; then exit 1; fi; \
# Distribution.
-dist:
+dist: ChangeLog
$(MAKE) check-manifest
rm -rf $(PACKAGE)-$(VERSION)
mkdir $(PACKAGE)-$(VERSION)
rm -f .orig-manifest .check-manifest; \
exit $$rv
-.PHONY: all opt depend install clean distclean configure dist check-manifest \
- release release_stage_2 release_stage_3 force
\ No newline at end of file
+ChangeLog:
+ hg log --style changelog > $@.new
+ mv $@.new $@
+
+# Developer documentation (in html/ subdirectory).
+
+ifneq ($(OCAMLDOC),)
+ifneq ($(OCAMLDOCFILES),)
+doc:
+ rm -rf html
+ mkdir html
+ -ocamlfind ocamldoc $(OCAMLDOCFLAGS) -d html $(OCAMLDOCFILES)
+endif
+endif
+
+.PHONY: all opt depend install clean distclean dist check-manifest doc force