add Makefile
This commit is contained in:
parent
52ffcc099a
commit
a224ac9c70
18
Makefile
Normal file
18
Makefile
Normal 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
|
Loading…
Reference in New Issue
Block a user