forked from kowainik/smuggler
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
72 lines (53 loc) · 1.43 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# For convenience
#
.PHONY: build install test clean accept doc hlint ghcid upload upload-docs weed stan
all: build test doc
build:
cabal outdated
# Creates a package environment file needed to get the tests to run in some
# environments (eg, travis). Use with care as it can lead to unexpected
# results if you are not aware that ghc is using it; it is a normally hidden
# dot file.
cabal build all --write-ghc-environment-files=always
debug:
cabal build -fdebug
install:
cabal install --lib smuggler2
#cabal install exe:ghc-smuggler2 --overwrite-policy=always
test: build
git diff --check
cabal test --test-show-details=streaming --test-option=--delete-output=onpass
clean:
cabal clean
cabal v1-clean
test/clean.sh
rm -rf .hie
rm TAGS ctags
accept:
cabal run smuggler2-test -- --accept --delete-output=onpass
doc:
cabal haddock
cabal haddock --haddock-for-hackage --enable-doc --haddock-option=--hyperlinked-source
upload:
cabal check
cabal gen-bounds
cabal sdist
cabal upload dist-newstyle/sdist/smuggler2-0.3.*.*.tar.gz
upload-docs:
cabal haddock --haddock-for-hackage --enable-doc --haddock-option=--hyperlinked-source
cabal upload -d --publish dist-newstyle/smuggler2-0.3.*.*-docs.tar.gz
hlint:
hlint src test/Test.hs
stan:
stan
ghcid:
ghcid
weed:
cabal build
weeder
whitespace:
git diff --check
git rebase --whitespace=fix
tag: *.md Makefile */*.hs */*/*.hs
hasktags -e -o TAGS $^
hasktags -c -o ctags $^