X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=cabal-package.mk;h=b2bf65597e8426a73d30fbdb637f08f33d54f7dd;hb=05f8f795a483f672b7cafc7ba9d444dc84b937a8;hp=2363b98c6d4f6d38725bc0352c8cf6de2a08b9cf;hpb=86d100e294fa482456980021cca10393b9830ec1;p=Lucu.git diff --git a/cabal-package.mk b/cabal-package.mk index 2363b98..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,21 +118,29 @@ fixme: || echo 'No FIXME or THINKME found.' lint: - $(HLINT) . --report + $(HLINT) . $(HLINT_OPTS) + +push: push-repo push-ditz push-doc -push: doc ditz +push-repo: if [ -d "_darcs" ]; then \ darcs push; \ elif [ -d ".git" ]; then \ git push --all && git push --tags; \ fi + +push-ditz: ditz + rsync -av --delete \ + dist/ditz/ \ + www@nem.cielonegro.org:static.cielonegro.org/htdocs/ditz/$(PKG_NAME) + +push-doc: doc if [ -d "dist/doc" ]; then \ rsync -av --delete \ dist/doc/html/$(PKG_NAME)/ \ www@nem.cielonegro.org:static.cielonegro.org/htdocs/doc/$(PKG_NAME); \ fi - rsync -av --delete \ - dist/ditz/ \ - www@nem.cielonegro.org:static.cielonegro.org/htdocs/ditz/$(PKG_NAME) -.PHONY: build build-hook setup-config setup-config-hook run clean clean-hook install doc sdist test lint push +.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 \ + ChangeLog