X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=4f04f26ccafb1536242963637ab557181a660edb;hb=c9f347bd3eb6994870e2c6854c1cb991a60a42f1;hp=39dd65c69b739ebaacdf90d332ff70bba690c3ac;hpb=c6b11025d1f81c668e9995e856b7bb34175230d3;p=Lucu.git diff --git a/Makefile b/Makefile index 39dd65c..4f04f26 100644 --- a/Makefile +++ b/Makefile @@ -1,25 +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 install: build - ./Setup install + sudo ./Setup install + +sdist: Setup + ./Setup sdist -.PHONY: run build clean install \ No newline at end of file +.PHONY: build run clean install doc sdist