-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (34 loc) · 983 Bytes
/
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
default :
#
# WARNING: Using `make` is outdated. See `INSTALL` and use
# `stack` instead. Not all features have been ported to the
# new build system.
#
false
.PHONY : dist-clean library test
# This makefile adapts to whether the file
# `tests/DanilenkoOriginal.hs` is present or not.
FLAGS =
ifneq ($(wildcard tests/DanilenkoOriginal.hs),)
FLAGS += --flag danilenko
endif
dist/build/matcher/matcher : cabal.sandbox.config
cabal build matcher
library : cabal.sandbox.config
cabal install
cabal haddock
test : cabal.sandbox.config
cabal install --only-dependencies --enable-tests $(FLAGS)
cabal configure --enable-tests $(FLAGS)
cabal test
shootout : cabal.sandbox.config
cabal install --only-dependencies $(FLAGS) --flag buildPerfTest
cabal configure $(FLAGS) --flag buildPerfTest
cabal build
scripts/shootout
README.html : README.md
pandoc -s -t html <README.md >| README.html
cabal.sandbox.config :
cabal sandbox init
dist-clean :
git clean -xdf