]> gitweb @ CieloNegro.org - Lucu.git/blob - Makefile
80beeebd03181c74791cd3fda1911ac2bfa7d1f0
[Lucu.git] / Makefile
1 CABAL_FILE = Lucu.cabal
2 GHC = ghc
3 WHAT_TO_RUN = ./dist/build/HelloWorld/HelloWorld
4
5 run: build
6         @echo ".:.:. Let's go .:.:."
7         $(WHAT_TO_RUN)
8
9 build: .setup-config Setup
10         ./Setup build
11
12 .setup-config: $(CABAL_FILE) Setup
13         ./Setup configure
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
22 .PHONY: run build clean