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