]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Makefile
Added NEWS
[Lucu.git] / Makefile
index 6b4ad4d989b28a5b152de9d00ee4d1438e6e35d7..5cb2248eca3e1ca0cbef45191fc9f7b1d22d7c12 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,32 +1,32 @@
 CABAL_FILE = Lucu.cabal
 GHC = ghc
 
-build: .setup-config Setup
+build: dist/setup-config Setup
        ./Setup build
 
 run: build
        @echo ".:.:. Let's go .:.:."
        $(MAKE) -C examples run
 
-.setup-config: $(CABAL_FILE) Setup
-#      ./Setup configure
-       ./Setup configure -p
+dist/setup-config: $(CABAL_FILE) Setup
+#      ./Setup configure --disable-optimization
+       ./Setup configure -O
 
 Setup: Setup.hs
        $(GHC) --make Setup
 
 clean:
-       rm -rf dist Setup Setup.o Setup.hi .setup-config
+       rm -rf dist Setup Setup.o Setup.hi
        find . -name '*~' -exec rm -f {} \;
        $(MAKE) -C examples clean
 
-doc: .setup-config Setup
-       ./Setup haddock
+doc: dist/setup-config Setup
+       ./Setup haddock --hyperlink-source --hscolour-css=../hscolour/hscolour.css
 
 install: build
-       ./Setup install
+       sudo ./Setup install
 
 sdist: Setup
        ./Setup sdist
 
-.PHONY: build run clean install doc sdist
\ No newline at end of file
+.PHONY: build run clean install doc sdist