]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Makefile
Exodus to GHC 6.8.1
[Lucu.git] / Makefile
index ee4aa8edaadd6b9a6de72e52a3cc365da48bf45e..7e30a9f4af13c665f7af614e255510c8922d057d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,16 @@
 CABAL_FILE = Lucu.cabal
 GHC = ghc
-WHAT_TO_RUN = ./dist/build/HelloWorld/HelloWorld
-
-run: build
-       @echo ".:.:. Let's go .:.:."
-       $(WHAT_TO_RUN)
 
 build: .setup-config Setup
        ./Setup build
 
+run: build
+       @echo ".:.:. Let's go .:.:."
+       $(MAKE) -C examples run
+
 .setup-config: $(CABAL_FILE) Setup
-       ./Setup configure
+#      ./Setup configure --disable-optimization
+       ./Setup configure -p --enable-split-objs
 
 Setup: Setup.hs
        $(GHC) --make Setup
@@ -18,11 +18,15 @@ Setup: Setup.hs
 clean:
        rm -rf dist Setup Setup.o Setup.hi .setup-config
        find . -name '*~' -exec rm -f {} \;
+       $(MAKE) -C examples clean
 
-doc:
-       ./Setup haddock
+doc: .setup-config Setup
+       ./Setup haddock --hyperlink-source --haddock-css=../hscolour/hscolour.css
 
 install: build
-       ./Setup install
+       sudo ./Setup install
+
+sdist: Setup
+       ./Setup sdist
 
-.PHONY: run build clean install doc
\ No newline at end of file
+.PHONY: build run clean install doc sdist