]> gitweb @ CieloNegro.org - Rakka.git/blob - Makefile
Localization of sub page
[Rakka.git] / Makefile
1 CABAL_FILE = Rakka.cabal
2 GHC        = ghc
3 EXECUTABLE = sudo ./dist/build/rakka/rakka -p 8989 -l DEBUG
4 #EXECUTABLE = sudo ./dist/build/rakka/rakka -p 8989 -l DEBUG +RTS -S -A60M -RTS
5 #EXECUTABLE = sudo ./dist/build/rakka/rakka -p 8989 -l DEBUG +RTS -p -RTS
6
7 build: dist/setup-config Setup
8         $(MAKE) -C js $@
9         ./Setup build
10
11 run: build
12         $(EXECUTABLE)
13
14 rebuild-index: build
15         $(EXECUTABLE) --rebuild-index
16
17 dist/setup-config: $(CABAL_FILE) configure Setup Rakka.buildinfo.in
18         ./Setup configure --disable-optimization -fbuild-test-suite
19 #       ./Setup configure -fhardest-optimization
20 #       ./Setup configure -fenable-profiling
21
22 configure: configure.ac
23         autoconf
24
25 Setup: Setup.hs
26         $(GHC) --make Setup
27
28 clean:
29         $(MAKE) -C js $@
30         rm -rf dist Setup Setup.o Setup.hi
31         find . -name '*~' -exec rm -f {} \;
32
33 install: build
34         sudo ./Setup install
35
36 test: build
37         ./Setup test
38
39 sdist: Setup
40         ./Setup sdist
41
42 .PHONY: build run clean install doc sdist