SOURCES=$(wildcard *.go) $(wildcard */*.go) NAME=wx BINDIR=/usr/bin $(NAME): $(SOURCES) go build -o $(NAME) . .PHONY: clean clean: rm -f $(NAME) .PHONY: install install: install -m755 $(NAME) $(BINDIR)