From a224ac9c70ede2274bd2e68fb3e3714cfd25052e Mon Sep 17 00:00:00 2001 From: Christoph Polcin Date: Thu, 23 Oct 2014 10:39:47 +0200 Subject: [PATCH] add Makefile --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile 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