X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=bf7f8818de645a883e53b7e55fb0b223ae0fa20f;hb=5a576bb124909743d9addf0f94a84b1214eb5f4b;hp=39dd65c69b739ebaacdf90d332ff70bba690c3ac;hpb=c6b11025d1f81c668e9995e856b7bb34175230d3;p=Lucu.git diff --git a/Makefile b/Makefile index 39dd65c..bf7f881 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,15 @@ CABAL_FILE = Lucu.cabal GHC = ghc -WHAT_TO_RUN = ./dist/build/HelloWorld/HelloWorld - -run: build - @echo ".:.:. Let's go .:.:." - $(WHAT_TO_RUN) build: .setup-config Setup ./Setup build +run: build + @echo ".:.:. Let's go .:.:." + $(MAKE) -C examples run + .setup-config: $(CABAL_FILE) Setup - ./Setup configure + ./Setup configure -p Setup: Setup.hs $(GHC) --make Setup @@ -18,8 +17,12 @@ Setup: Setup.hs clean: rm -rf dist Setup Setup.o Setup.hi .setup-config find . -name '*~' -exec rm -f {} \; + $(MAKE) -C examples clean + +doc: .setup-config Setup + ./Setup haddock install: build ./Setup install -.PHONY: run build clean install \ No newline at end of file +.PHONY: build run clean install doc \ No newline at end of file