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 --disable-optimization -fbuild-test-suite 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 test: build ./Setup test .PHONY: build run clean install doc sdist test