3 LINTARGET
=linux-i686-glibc-2.16
4 sources
=$(filter-out Paths_intricacy.hs
,$(wildcard *.hs
*.lhs
))
6 cabal
install -O0
-f Server
--bindir .
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 .
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 .
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=.
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=.
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
39 multimarkdown
< index.md
> index.html