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