X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=cabal-package.mk;h=b2bf65597e8426a73d30fbdb637f08f33d54f7dd;hb=c7faabefe2f193148ee2f4679e611f0025bfbd5b;hp=572e5b60eedd82edac5f6edf331dfb41daaf25f1;hpb=4a0536c120416cc9e65a71cc25083a92e74d49b6;p=cabal-shared-makefile.git diff --git a/cabal-package.mk b/cabal-package.mk index 572e5b6..b2bf655 100644 --- a/cabal-package.mk +++ b/cabal-package.mk @@ -18,6 +18,7 @@ HPC ?= hpc DITZ ?= ditz CONFIGURE_ARGS ?= --disable-optimization +HLINT_OPTS ?= --cross --report=dist/report.html SETUP_FILE := $(wildcard Setup.*hs) CABAL_FILE := $(wildcard *.cabal) @@ -99,6 +100,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 \ @@ -110,7 +118,7 @@ fixme: || echo 'No FIXME or THINKME found.' lint: - $(HLINT) . --report + $(HLINT) . $(HLINT_OPTS) push: push-repo push-ditz push-doc @@ -134,4 +142,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