]> gitweb @ CieloNegro.org - Lucu.git/blob - Makefile
bf7f8818de645a883e53b7e55fb0b223ae0fa20f
[Lucu.git] / Makefile
1 CABAL_FILE = Lucu.cabal
2 GHC = ghc
3
4 build: .setup-config Setup
5         ./Setup build
6
7 run: build
8         @echo ".:.:. Let's go .:.:."
9         $(MAKE) -C examples run
10
11 .setup-config: $(CABAL_FILE) Setup
12         ./Setup configure -p
13
14 Setup: Setup.hs
15         $(GHC) --make Setup
16
17 clean:
18         rm -rf dist Setup Setup.o Setup.hi .setup-config
19         find . -name '*~' -exec rm -f {} \;
20         $(MAKE) -C examples clean
21
22 doc: .setup-config Setup
23         ./Setup haddock
24
25 install: build
26         ./Setup install
27
28 .PHONY: build run clean install doc