diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f61b862 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +SRC := $(wildcard *.go) main/client.go +BIN := bin +CLIENT := ${BIN}/client +GOPATH ?= ${PWD} + +all: client + +client: ${CLIENT} + +${CLIENT}: ${SRC} + @echo build $@ + @GOPATH=${GOPATH} go build -o $@ -- main/client.go + +clean: + @echo clean ${BIN} + @rm -f ${BIN}/* + +.PHONY: all client clean