copyediting
[intricacy.git] / Makefile
blobd52664478840705dc6d5500f411736b428b0af32
1 VERSION=0.7.1.1
3 LINTARGET=linux-i686-glibc-2.16
4 sources=$(filter-out Paths_intricacy.hs,$(wildcard *.hs *.lhs))
5 all: $(sources)
6 cabal install -O0 -f Server --bindir .
7 intricacy: $(sources)
8 #cabal install -O0 --bindir .
9 ghc -o intricacy --make MainBoth.hs
10 intricacy-O2: $(sources)
11 ghc -o intricacy-O2 -O2 --make MainBoth.hs
12 intricacy-curses: $(sources)
13 cabal configure -f -SDL --bindir .
14 cabal build
15 mv dist/build/intricacy/intricacy intricacy-curses
16 intricacy-checker: $(sources)
17 ghc -o intricacy-checker --make -O2 -rtsopts -prof -auto-all Checker.hs
18 intricacy-server: $(sources)
19 cabal configure -f Server -f -Game --bindir .
20 cabal build
21 mv dist/build/intricacy-server/intricacy-server .
22 intricacy-server-O2: $(sources)
23 ghc -o intricacy-server-O2 --make Server.hs
24 intricacy-prof: $(sources)
25 ghc -o intricacy-prof --make -rtsopts -prof -auto-all MainBoth.hs
26 intricacy-static: $(sources)
27 cabal configure --ghc-options="-static" --bindir=. --datadir=.
28 cabal build
29 mv dist/build/intricacy/intricacy ./intricacy-static
30 intricacy-server-static: $(sources)
31 cabal configure -f Server -f -Game --ghc-options="-static" --bindir=. --datadir=.
32 cabal build
33 mv dist/build/intricacy-server/intricacy-server ./intricacy-server-static
34 modules.dot: $(sources)
35 graphmod *.lhs *.hs > modules.dot
36 modules.png: modules.dot
37 dot -Tpng -o modules.png modules.dot
38 index.html: index.md
39 markdown_py < index.md > index.html