]> gitweb @ CieloNegro.org - Rakka.git/blob - Makefile
05b96a16cd13f597ae30aea1f69a368b6b05b227
[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: dist/setup-config Setup
6         $(MAKE) -C js $@
7         ./Setup build
8
9 run: build
10         $(EXECUTABLE)
11
12 rebuild-index: build
13         $(EXECUTABLE) --rebuild-index
14
15 dist/setup-config: $(CABAL_FILE) configure Setup Rakka.buildinfo.in
16         ./Setup configure --disable-optimization -fbuild-test-suite
17 #       ./Setup configure -O
18
19 configure: configure.ac
20         autoconf
21
22 Setup: Setup.hs
23         $(GHC) --make Setup
24
25 clean:
26         $(MAKE) -C js $@
27         rm -rf dist Setup Setup.o Setup.hi
28         find . -name '*~' -exec rm -f {} \;
29
30 install: build
31         sudo ./Setup install
32
33 test: build
34         ./Setup test
35
36 sdist: Setup
37         ./Setup sdist
38
39 .PHONY: build run clean install doc sdist