GHC=/usr/local/bin/ghc .PHONY: all all: configure build .PHONY: configure configure: setup ./setup configure .PHONY: build build: setup ./setup build .PHONY: install install: setup ./setup install sdist: setup ./setup sdist setup: Setup.hs $(GHC) --make Setup.hs -o setup .PHONY: clean clean: setup ./setup clean rm -f *.o setup test.tmp