add Makefile

This commit is contained in:
Christoph Polcin 2014-10-23 10:39:47 +02:00
parent 52ffcc099a
commit a224ac9c70

18
Makefile Normal file
View File

@ -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