17 lines
253 B
Makefile
17 lines
253 B
Makefile
SRCS != find ./ -type f -name '*.go'
|
|
|
|
GO ?= go
|
|
BIN_DIR ?= bin
|
|
BIN_NAME ?= urbanterror-agones
|
|
|
|
bin: ${SRCS}
|
|
${GO} build -o ${BIN_DIR}/${BIN_NAME} ./cmd/urbanterror-agones/
|
|
|
|
test: bin
|
|
${GO} test ./...
|
|
|
|
run: bin
|
|
${BIN_DIR}/${BIN_NAME}
|
|
|
|
.PHONY: test run
|