-override GHCID_OPTIONS += --no-height-limit --reverse-errors
-override REPL_OPTIONS += -ignore-dot-ghci
-
cabal := $(wildcard *.cabal)
package := $(notdir ./$(cabal:.cabal=))
version := $(shell sed -ne 's/^version: *\(.*\)/\1/p' $(cabal))
project := $(patsubst %.cabal,%,$(cabal))
cabal_builddir ?= dist-newstyle
+override REPL_OPTIONS += -ignore-dot-ghci
+override GHCID_OPTIONS += --no-height-limit --reverse-errors --color=always --warnings --restart $(cabal)
+
all: build
build:
cabal build $(CABAL_BUILD_FLAGS)
git tag -d $(package)-$(version)
git add '$@'
git commit -m 'doc: update `$@`'
-tag: ChangeLog.md
+tag: build ChangeLog.md
git tag -s -m $(package)-$(version) $(package)-$(version)
tar: