-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 745 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (26 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
SHA := $(shell git rev-parse --short=8 HEAD)
GITVERSION := $(shell git describe --long --all)
BUILDDATE := $(shell date -Iseconds)
VERSION := $(or ${VERSION},$(shell git describe --tags --exact-match 2> /dev/null || git symbolic-ref -q --short HEAD || git rev-parse --short HEAD))
LOCALBIN ?= $(shell pwd)/bin
all: proto generate test build
release: proto generate test build
.PHONY: proto
proto: protolint
$(MAKE) -C go clean
$(MAKE) -C python clean
$(MAKE) -C proto protoc
$(MAKE) -C python generate
.PHONY: protolint
protolint:
$(MAKE) -C proto protolint
.PHONY: generate
generate:
$(MAKE) -C generate generate
.PHONY: test
test:
$(MAKE) -C go test
$(MAKE) -C js test
.PHONY: build
build:
make -C js build VERSION=$(VERSION)