]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Makefile
Makefiles
[Lucu.git] / Makefile
index 39dd65c69b739ebaacdf90d332ff70bba690c3ac..bbd831f5a1da11896879449dcacae8955c3115eb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,16 @@
 CABAL_FILE = Lucu.cabal
 GHC = ghc
-WHAT_TO_RUN = ./dist/build/HelloWorld/HelloWorld
+
+build: .setup-config Setup
+       ./Setup build
 
 run: build
        @echo ".:.:. Let's go .:.:."
        $(WHAT_TO_RUN)
-
-build: .setup-config Setup
-       ./Setup build
+       $(MAKE) -C examples run
 
 .setup-config: $(CABAL_FILE) Setup
-       ./Setup configure
+       ./Setup configure -p
 
 Setup: Setup.hs
        $(GHC) --make Setup
@@ -18,8 +18,12 @@ 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
 
 install: build
        ./Setup install
 
-.PHONY: run build clean install
\ No newline at end of file
+.PHONY: build run clean install doc
\ No newline at end of file