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 .setup-config: $(CABAL_FILE) Setup ./Setup configure Setup: Setup.hs $(GHC) --make Setup clean: rm -rf dist Setup Setup.o Setup.hi .setup-config find . -name '*~' -exec rm -f {} \; doc: ./Setup haddock install: build ./Setup install .PHONY: run build clean install doc