]> gitweb @ CieloNegro.org - haskell-dns.git/blob - Makefile
defaultUserHooks --> simpleUserHooks
[haskell-dns.git] / Makefile
1 CABAL_FILE = dns.cabal
2 GHC = ghc
3
4 build: dist/setup-config Setup
5         ./Setup build
6
7 run: build
8         @echo ".:.:. Let's go .:.:."
9         ./dist/build/ExampleDNSServer/ExampleDNSServer
10
11 dist/setup-config: $(CABAL_FILE) Setup
12         ./Setup configure --disable-optimization -fbuild-test-suite -fbuild-examples
13
14 Setup: Setup.lhs
15         $(GHC) --make Setup
16
17 clean:
18         rm -rf dist Setup Setup.o Setup.hi .setup-config *.buildinfo
19         find . -name '*~' -exec rm -f {} \;
20
21 doc: dist/setup-config Setup
22         ./Setup haddock
23
24 install: build
25         sudo ./Setup install
26
27 sdist: Setup
28         ./Setup sdist
29
30 test: build
31         ./Setup test
32
33 .PHONY: build run clean install doc sdist test