]> gitweb @ CieloNegro.org - Lucu.git/blob - Makefile
Makefiles
[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         $(WHAT_TO_RUN)
10         $(MAKE) -C examples run
11
12 .setup-config: $(CABAL_FILE) Setup
13         ./Setup configure -p
14
15 Setup: Setup.hs
16         $(GHC) --make Setup
17
18 clean:
19         rm -rf dist Setup Setup.o Setup.hi .setup-config
20         find . -name '*~' -exec rm -f {} \;
21         $(MAKE) -C examples clean
22
23 doc:
24         ./Setup haddock
25
26 install: build
27         ./Setup install
28
29 .PHONY: build run clean install doc