X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Lucu.git;a=blobdiff_plain;f=Makefile;h=bbd831f5a1da11896879449dcacae8955c3115eb;hp=ee4aa8edaadd6b9a6de72e52a3cc365da48bf45e;hb=453cecf83e146e1ec23545fb371f7b91ab6adea7;hpb=40c0d61e88920807a91b8f3c4419b08032988d76 diff --git a/Makefile b/Makefile index ee4aa8e..bbd831f 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,16 @@ CABAL_FILE = Lucu.cabal GHC = ghc -WHAT_TO_RUN = ./dist/build/HelloWorld/HelloWorld + +build: .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 + ./Setup configure -p Setup: Setup.hs $(GHC) --make Setup @@ -18,6 +18,7 @@ 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 haddock @@ -25,4 +26,4 @@ doc: install: build ./Setup install -.PHONY: run build clean install doc \ No newline at end of file +.PHONY: build run clean install doc \ No newline at end of file