X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=6b4ad4d989b28a5b152de9d00ee4d1438e6e35d7;hb=8515a693765cbd640b669c563fe7e1a34a98acde;hp=80beeebd03181c74791cd3fda1911ac2bfa7d1f0;hpb=a9e9f50818285bf66cd64e5a248175eecb8e1fea;p=Lucu.git diff --git a/Makefile b/Makefile index 80beeeb..6b4ad4d 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,16 @@ 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 + ./Setup configure -p Setup: Setup.hs $(GHC) --make Setup @@ -18,5 +18,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 + +sdist: Setup + ./Setup sdist -.PHONY: run build clean \ No newline at end of file +.PHONY: build run clean install doc sdist \ No newline at end of file