]> Git — Sourcephile - haskell/symantic-parser.git/blob - Makefile
ignore dump-core/
[haskell/symantic-parser.git] / Makefile
1 cabal = $(shell find . -maxdepth 1 -name '*.cabal' -print -quit)
2 package = $(notdir ./$(cabal:.cabal=))
3 all: build
4 build:
5 cabal build
6 repl:
7 cabal repl
8
9 t:
10 cabal test --test-show-details always --test-options "--color always --size-cutoff 100000"
11 t/repl:
12 cabal repl --enable-tests symantic-parser-test
13 t/prof:
14 cabal test --enable-profiling --enable-library-coverage --enable-coverage --test-show-details always
15 t/accept:
16 cabal test --test-show-details always --test-options "--accept --color always --size-cutoff 100000"
17
18 doc:
19 cabal haddock --haddock-css ocean --haddock-hyperlink-source
20
21 tag:
22 name=$$(sed -ne 's/^name: *\(.*\)/\1/p' "$(cabal)"); \
23 version=$$(sed -ne 's/^version: *\(.*\)/\1/p' "$(cabal)"); \
24 git tag --merged | grep -Fqx "$$name-$$version" || \
25 git tag -f -s -m "$$name v$$version" $$name-$$version
26
27 tar:
28 cabal sdist
29 upload:
30 LANG=C cabal upload .