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