]> gitweb @ CieloNegro.org - Rakka.git/blob - Makefile
Farewell the dream of plug-in system... It's way too hard to implement nicely. 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 .setup-config: $(CABAL_FILE) configure Setup Rakka.buildinfo.in
12         BUILD_TEST_SUITE=yes ./Setup configure
13
14 configure: configure.ac
15         autoconf
16
17 Setup: Setup.hs
18         $(GHC) --make Setup
19
20 clean:
21         rm -rf dist Setup Setup.o Setup.hi .setup-config
22         find . -name '*~' -exec rm -f {} \;
23
24 install: build
25         sudo ./Setup install
26
27 test: build
28         ./Setup test
29
30 sdist: Setup
31         ./Setup sdist
32
33 .PHONY: build run clean install doc sdist