]> gitweb @ CieloNegro.org - Rakka.git/blob - Makefile
Wrote many...
[Rakka.git] / Makefile
1 CABAL_FILE = Rakka.cabal
2 GHC        = ghc
3 EXECUTABLE = sudo ./dist/build/rakka/rakka -p 8989 -l DEBUG
4
5 build: .setup-config Setup
6         ./Setup build
7
8 run: build
9         $(EXECUTABLE)
10
11 rebuild-index: build
12         $(EXECUTABLE) --rebuild-index
13
14 .setup-config: $(CABAL_FILE) configure Setup Rakka.buildinfo.in
15         BUILD_TEST_SUITE=yes ./Setup configure
16
17 configure: configure.ac
18         autoconf
19
20 Setup: Setup.hs
21         $(GHC) --make Setup
22
23 clean:
24         rm -rf dist Setup Setup.o Setup.hi .setup-config
25         find . -name '*~' -exec rm -f {} \;
26
27 install: build
28         sudo ./Setup install
29
30 test: build
31         ./Setup test
32
33 sdist: Setup
34         ./Setup sdist
35
36 .PHONY: build run clean install doc sdist