X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=5cb2248eca3e1ca0cbef45191fc9f7b1d22d7c12;hb=dfbf241202237b5b4033dbf781de5e10e0f919eb;hp=bbd831f5a1da11896879449dcacae8955c3115eb;hpb=453cecf83e146e1ec23545fb371f7b91ab6adea7;p=Lucu.git diff --git a/Makefile b/Makefile index bbd831f..5cb2248 100644 --- a/Makefile +++ b/Makefile @@ -1,29 +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 .:.:." - $(WHAT_TO_RUN) $(MAKE) -C examples run -.setup-config: $(CABAL_FILE) Setup - ./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 haddock +doc: dist/setup-config Setup + ./Setup haddock --hyperlink-source --hscolour-css=../hscolour/hscolour.css install: build - ./Setup install + sudo ./Setup install -.PHONY: build run clean install doc \ No newline at end of file +sdist: Setup + ./Setup sdist + +.PHONY: build run clean install doc sdist