]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - Makefile
started implementing trackback receiver
[Rakka.git] / Makefile
index 99956d437dc23cd454f3257387863f7fd8cdbc80..8bb305a19adcc4a1e9e99063f99d277d1a224bab 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,10 @@
 CABAL_FILE = Rakka.cabal
 GHC        = ghc
 EXECUTABLE = sudo ./dist/build/rakka/rakka -p 8989 -l DEBUG
+#EXECUTABLE = sudo ./dist/build/rakka/rakka -p 8989 -l DEBUG +RTS -S -A60M -RTS
+#EXECUTABLE = sudo ./dist/build/rakka/rakka -p 8989 -l DEBUG +RTS -p -RTS
 
-build: .setup-config Setup
+build: dist/setup-config Setup
        $(MAKE) -C js $@
        ./Setup build
 
@@ -12,8 +14,10 @@ run: build
 rebuild-index: build
        $(EXECUTABLE) --rebuild-index
 
-.setup-config: $(CABAL_FILE) configure Setup Rakka.buildinfo.in
-       BUILD_TEST_SUITE=yes ./Setup configure
+dist/setup-config: $(CABAL_FILE) configure Setup Rakka.buildinfo.in
+       ./Setup configure --disable-optimization -fbuild-test-suite
+#      ./Setup configure -fhardest-optimization
+#      ./Setup configure -fenable-profiling
 
 configure: configure.ac
        autoconf
@@ -22,7 +26,8 @@ Setup: Setup.hs
        $(GHC) --make Setup
 
 clean:
-       rm -rf dist Setup Setup.o Setup.hi .setup-config
+       $(MAKE) -C js $@
+       rm -rf dist Setup Setup.o Setup.hi
        find . -name '*~' -exec rm -f {} \;
 
 install: build
@@ -34,4 +39,4 @@ test: build
 sdist: Setup
        ./Setup sdist
 
-.PHONY: build run clean install doc sdist
\ No newline at end of file
+.PHONY: build run clean install doc sdist