add extra guidance in first tut level
[intricacy.git] / Makefile
blob40dfac0a416ff52ff02c667737f89aac3923b55a
1 VERSION=0.8.0.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 -DMAIN_SDL -DMAIN_CURSES --make Intricacy.hs
10 intricacy-O2: $(sources)
11 ghc -o intricacy-O2 -DMAIN_SDL -DMAIN_CURSES -O2 --make Intricacy.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 -DMAIN_SDL -DMAIN_CURSES --make -rtsopts -prof -auto-all Intricacy.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 multimarkdown < index.md > index.html