CABAL_FILE = dns.cabal GHC = ghc build: dist/setup-config Setup ./Setup build #run: build # @echo ".:.:. Let's go .:.:." # $(MAKE) -C examples run dist/setup-config: $(CABAL_FILE) Setup ./Setup configure Setup: Setup.lhs $(GHC) --make Setup clean: rm -rf dist Setup Setup.o Setup.hi .setup-config *.buildinfo find . -name '*~' -exec rm -f {} \; doc: dist/setup-config Setup ./Setup haddock install: build sudo ./Setup install sdist: Setup ./Setup sdist .PHONY: build run clean install doc sdist