]> gitweb @ CieloNegro.org - cabal-shared-makefile.git/commitdiff
new target: ChangeLog
authorPHO <pho@cielonegro.org>
Mon, 3 Oct 2011 13:31:58 +0000 (22:31 +0900)
committerPHO <pho@cielonegro.org>
Mon, 3 Oct 2011 13:31:58 +0000 (22:31 +0900)
cabal-package.mk

index 50589e021b7d44bb04e1e06e9e63543dc18557e1..e4121394d75de781787a0b046c55cc660a380060 100644 (file)
@@ -99,6 +99,13 @@ test: build
 ditz:
        $(DITZ) html dist/ditz
 
+ChangeLog:
+       rm -f $@
+       $(DITZ) releases | awk '{print $$1}' | sort --reverse | while read i; do \
+               $(DITZ) changelog $$i >> $@; \
+       done
+       head $@
+
 fixme:
        @$(FIND) . \
                \( -name 'dist' -or -name '.git' -or -name '_darcs' \) -prune \
@@ -134,4 +141,5 @@ push-doc: doc
        fi
 
 .PHONY: build build-hook setup-config setup-config-hook run clean clean-hook \
-               install doc sdist test lint push push-repo push-ditz push-doc
+               install doc sdist test lint push push-repo push-ditz push-doc \
+               ChangeLog