forked from bioothod/backrunner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (16 loc) · 653 Bytes
/
Makefile
File metadata and controls
23 lines (16 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env make
backrunner=github.com/DemonVex/backrunner
backrunner_config=${backrunner}/config
BUILD_DATE=$(shell date "+%Y-%m-%d/%H:%M:%S/%z")
GO_LDFLAGS=-ldflags "-X ${backrunner_config}.BuildDate=${BUILD_DATE} \
-X ${backrunner_config}.LastCommit=$(shell git rev-parse --short HEAD) \
-X ${backrunner_config}.EllipticsGoLastCommit=$(shell GIT_DIR=${GOPATH}/src/github.com/bioothod/elliptics-go/.git git rev-parse --short HEAD)"
.DEFAULT: build
.PHONY: build
all: build
build:
rm -f backrunner bmeta
go build -o backrunner ${GO_LDFLAGS} proxy.go
go build -o bmeta meta/bmeta.go
install: build
cp -rf backrunner bmeta ${GOPATH}/bin/