A better way to distribute the changelog
[virt-mem.git] / Makefile.in
index 27a7ea9..fde6494 100644 (file)
@@ -93,11 +93,12 @@ endif
 
 # Distribution.
 
-dist: ChangeLog
+dist:
        $(MAKE) check-manifest
        rm -rf $(PACKAGE)-$(VERSION)
        mkdir $(PACKAGE)-$(VERSION)
        tar -cf - -T MANIFEST | tar -C $(PACKAGE)-$(VERSION) -xf -
+       hg log --style changelog > $(PACKAGE)-$(VERSION)/ChangeLog
        $(INSTALL) -m 0755 configure $(PACKAGE)-$(VERSION)/
        tar zcf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
        rm -rf $(PACKAGE)-$(VERSION)
@@ -110,9 +111,5 @@ check-manifest:
        rm -f .orig-manifest .check-manifest; \
        exit $$rv
 
-ChangeLog: force
-       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