Version 2.1.2 for release.
[virt-df.git] / Makefile.in
index 87d131b..bd1df89 100644 (file)
@@ -1,5 +1,6 @@
-# ocaml-libvirt
-# Copyright (C) 2007 Red Hat Inc., Richard W.M. Jones
+# virt-df
+# @configure_input@
+# Copyright (C) 2007-2008 Red Hat Inc., Richard W.M. Jones
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -20,12 +21,9 @@ VERSION              = @PACKAGE_VERSION@
 
 INSTALL                = @INSTALL@
 
-OCAMLDOC        = @OCAMLDOC@
-OCAMLDOCFLAGS  := -html -sort
-
 SUBDIRS                = lib virt-df diskzip
 
-all opt depend install:
+all opt depend install doc:
        for d in $(SUBDIRS); do \
          $(MAKE) -C $$d $@; \
          if [ $$? -ne 0 ]; then exit 1; fi; \
@@ -37,6 +35,7 @@ clean:
            *.so *.opt *~ *.dll *.exe *.annot core); \
        done
        rm -f virt-df/virt-df
+       rm -f diskzip/diskzip
 
 distclean: clean
        rm -f config.h config.log config.status configure
@@ -44,21 +43,9 @@ distclean: clean
        rm -f Makefile
        rm -f virt-df/Makefile
 
-# Developer documentation (in html/ subdirectory).
-
-ifneq ($(OCAMLDOC),)
-doc:
-       rm -rf html
-       mkdir html
-       -cd lib; \
-       $(OCAMLDOC) $(OCAMLDOCFLAGS) -d ../html \
-         -I +extlib -I +bitmatch \
-         int63.mli diskimage.mli diskimage.ml
-endif
-
 # Distribution.
 
-dist:
+dist: ChangeLog
        $(MAKE) check-manifest
        rm -rf $(PACKAGE)-$(VERSION)
        mkdir $(PACKAGE)-$(VERSION)
@@ -75,5 +62,9 @@ check-manifest:
        rm -f .orig-manifest .check-manifest; \
        exit $$rv
 
+ChangeLog:
+       hg log --style changelog > $@.new
+       mv $@.new $@
+
 .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