-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (34 loc) · 753 Bytes
/
Makefile
File metadata and controls
48 lines (34 loc) · 753 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
OSVC_CONTEXT =
GOCMD ?= go
GOBUILD := $(GOCMD) build
GOCLEAN := $(GOCMD) clean
GOTEST := $(GOCMD) test
GOGEN := $(GOCMD) generate
GOVET := $(GOCMD) vet
MKDIR := /bin/mkdir
DIST := dist
OC3 := $(DIST)/oc3
all: clean vet test race build
build: version api oc3
deps:
$(GOCMD) get -tool github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latest
api:
$(GOGEN) ./feeder
$(GOGEN) ./server
clean:
$(GOCLEAN)
$(GOCLEAN) -testcache
rm -f $(OC3)
oc3:
$(MKDIR) -p $(DIST)
$(GOBUILD) -o $(OC3) .
race:
$(GOTEST) -p 1 -timeout 240s ./... -race
test:
$(GOTEST) -p 1 -timeout 60s ./...
testinfo:
TEST_LOG_LEVEL=info $(GOTEST) -p 1 -timeout 60s ./...
version:
git describe --tags --abbrev > util/version/text/VERSION
vet:
$(GOVET) ./...