Auto-generate ChangeLog.
[ocaml-libvirt.git] / Makefile.in
index 52776e0..1904580 100644 (file)
@@ -25,7 +25,7 @@ MAKENSIS      = @MAKENSIS@
 OCAMLDOC        = @OCAMLDOC@
 OCAMLDOCFLAGS  := -html -sort
 
-SUBDIRS                = @subdirs@
+SUBDIRS                = libvirt mlvirsh examples
 
 all opt depend install:
        for d in $(SUBDIRS); do \
@@ -40,9 +40,6 @@ clean:
        rm -f examples/list_domains
        rm -f examples/node_info
        rm -f mlvirsh/mlvirsh
-       rm -f virt-ctrl/virt-ctrl
-       rm -f virt-top/virt-top
-       rm -f virt-df/virt-df
 
 distclean: clean
        rm -f config.h config.log config.status configure
@@ -53,9 +50,6 @@ distclean: clean
        rm -f libvirt/Makefile
        rm -f examples/Makefile
        rm -f mlvirsh/Makefile
-       rm -f virt-ctrl/Makefile
-       rm -f virt-top/Makefile
-       rm -f virt-df/Makefile
 
 # Developer documentation (in html/ subdirectory).
 
@@ -92,7 +86,7 @@ configure: force
 
 # Distribution.
 
-dist:
+dist: ChangeLog
        $(MAKE) check-manifest
        rm -rf $(PACKAGE)-$(VERSION)
        mkdir $(PACKAGE)-$(VERSION)
@@ -109,6 +103,10 @@ check-manifest:
        rm -f .orig-manifest .check-manifest; \
        exit $$rv
 
+ChangeLog:
+       hg log --style changelog > $@.new
+       mv $@.new $@
+
 # Do a release (update the website).
 
 release: configure