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