X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=fc098691ff4d4a8ec122238ec9aa74202decb1ee;hb=5fc2e72c153ade03b16071c66a08a316295bb42a;hp=ee4aa8edaadd6b9a6de72e52a3cc365da48bf45e;hpb=40c0d61e88920807a91b8f3c4419b08032988d76;p=Lucu.git diff --git a/Makefile b/Makefile index ee4aa8e..fc09869 100644 --- a/Makefile +++ b/Makefile @@ -1,28 +1,32 @@ CABAL_FILE = Lucu.cabal GHC = ghc -WHAT_TO_RUN = ./dist/build/HelloWorld/HelloWorld + +build: dist/setup-config Setup + ./Setup build run: build @echo ".:.:. Let's go .:.:." - $(WHAT_TO_RUN) + $(MAKE) -C examples run -build: .setup-config Setup - ./Setup build - -.setup-config: $(CABAL_FILE) Setup - ./Setup configure +dist/setup-config: $(CABAL_FILE) Setup +# ./Setup configure --disable-optimization + ./Setup configure -p -O --enable-split-objs 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 + +sdist: Setup + ./Setup sdist -.PHONY: run build clean install doc \ No newline at end of file +.PHONY: build run clean install doc sdist