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