-
Notifications
You must be signed in to change notification settings - Fork 57
/
Makefile
43 lines (30 loc) · 893 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
all:
cabal build
conf:
cabal configure
profconf:
cabal configure --enable-library-profiling --enable-executable-profiling
doc: docimages/pixelgraph.svg
runhaskell Setup.hs haddock
clean:
runhaskell Setup.hs clean
rm -f tests/pngsuite/*.bmp
rm -f tests/pngsuite/*.jpg
rm -f tests/gif/*.jpg
rm -f tests/gif/*.png
rm -f tests/gif/*.bmp
prof:
dist\build\imageTest\imageTest.exe +RTS -p -sstderr -RTS test
hp2ps -c imageTest.hp
test:
dist\build\imageTest\imageTest.exe debug
lint:
hlint lint src \
--cpp-define=MIN_VERSION_base=1 \
--cpp-define=MIN_VERSION_transformers=1 \
--cpp-define=MIN_VERSION_containers=1 \
--cpp-define=MIN_VERSION_binary=1
sdist: docimages/pixelgraph.svg
runhaskell Setup.hs sdist
docimages/pixelgraph.svg: docimages/pixelgraph.gv
dot -Tsvg -o docimages/pixelgraph.svg docimages/pixelgraph.gv