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