CABAL_FILE = Rakka.cabal GHC = ghc EXECUTABLE = sudo ./dist/build/rakka/rakka -p 8989 -l DEBUG build: dist/setup-config Setup $(MAKE) -C js $@ ./Setup build run: build $(EXECUTABLE) 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 Setup: Setup.hs $(GHC) --make Setup clean: $(MAKE) -C js $@ rm -rf dist Setup Setup.o Setup.hi find . -name '*~' -exec rm -f {} \; install: build sudo ./Setup install test: build ./Setup test sdist: Setup ./Setup sdist .PHONY: build run clean install doc sdist