TOOL = $(basename $(wildcard *.cabal)) all: cabal build cp `cabal list-bin $(TOOL)` . clean: cabal clean rm -f $(TOOL)