]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - Makefile
improved the page editor
[Rakka.git] / Makefile
index 8ae8c88066633203c0606cb344ea359762e2a5a7..05b96a16cd13f597ae30aea1f69a368b6b05b227 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,20 @@
 CABAL_FILE = Rakka.cabal
 GHC        = ghc
-EXECUTABLE = ./dist/build/Rakka/rakka
+EXECUTABLE = sudo ./dist/build/rakka/rakka -p 8989 -l DEBUG
 
-build: .setup-config Setup
+build: dist/setup-config Setup
+       $(MAKE) -C js $@
        ./Setup build
 
 run: build
-       @echo ".:.:. Let's go .:.:."
        $(EXECUTABLE)
 
-.setup-config: $(CABAL_FILE) configure Setup Rakka.buildinfo.in
-       BUILD_TEST_SUITE=yes ./Setup configure
+rebuild-index: build
+       $(EXECUTABLE) --rebuild-index
+
+dist/setup-config: $(CABAL_FILE) configure Setup Rakka.buildinfo.in
+       ./Setup configure --disable-optimization -fbuild-test-suite
+#      ./Setup configure -O
 
 configure: configure.ac
        autoconf
@@ -19,11 +23,12 @@ 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
-       ./Setup install
+       sudo ./Setup install
 
 test: build
        ./Setup test
@@ -31,4 +36,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