forked from upvestco/httpsignature-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
19 lines (16 loc) · 693 Bytes
/
Makefile
File metadata and controls
19 lines (16 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
BUILDTOOL=go
VERSION=1.1.0-dev
BRANCH=$(shell git rev-parse --abbrev-ref HEAD)
COMMIT=$(shell git rev-parse HEAD)
COMPILED=$(shell date -u '+%Y%m%d-%H%M%S')
BUILTBY=$(shell id -un)
LDFLAGS="-X github.com/upvestco/httpsignature-proxy/cmd.date=$(COMPILED) -X github.com/upvestco/httpsignature-proxy/cmd.commit=$(COMMIT) -X github.com/upvestco/httpsignature-proxy/cmd.version=$(VERSION) -X github.com/upvestco/httpsignature-proxy/cmd.builtBy=$(BUILTBY)"
default: macos
clean:
rm -rf httpsignature-*
macos: clean
GOOS=darwin $(BUILDTOOL) build -ldflags $(LDFLAGS)
linux: clean
GOOS=linux $(BUILDTOOL) build -ldflags $(LDFLAGS)
win: clean
GOOS=windows $(BUILDTOOL) build -ldflags $(LDFLAGS)