-
Notifications
You must be signed in to change notification settings - Fork 73
/
Makefile
49 lines (36 loc) · 1.06 KB
/
Makefile
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
49
# $(eval VERSION = $(shell head VERSION))
# $(eval GIT_COMMIT = $(shell git rev-parse HEAD))
# $(eval NOW = $(shell date))
# # Go parameters
# GOCMD=go
# GOBUILD=$(GOCMD) build
# GOCLEAN=$(GOCMD) clean
# GOTEST=$(GOCMD) test
# GOGET=$(GOCMD) get
# BINARY_NAME=kaybee
# BINARY_UNIX=$(BINARY_NAME)-$(VERSION)_linux-amd64
# BINARY_WINDOWS=$(BINARY_NAME)-$(VERSION)_win-amd64
# BINARY_MACOS=$(BINARY_NAME)-$(VERSION)_darwin-amd64
# all: lint vet test build #ui
# build: fmt
# $(GOBUILD) -ldflags='-X "github.com/sap/project-kb/kaybee/cmd.buildDate=$(NOW)" -X "github.com/sap/project-kb/kaybee/cmd.buildCommitID=$(GIT_COMMIT)" -X "github.com/sap/project-kb/kaybee/cmd.version=$(VERSION)"' -o $(BINARY_NAME) -v
# # ui:
# # $(MAKE) --directory=ui
SUBDIRS := kaybee
.PHONY: all $(SUBDIRS)
all: $(SUBDIRS) build-docs
$(SUBDIRS):
$(MAKE) -C $@
build:
$(MAKE) --directory=kaybee build
test:
$(MAKE) --directory=kaybee test
deploy-docs:
mkdocs gh-deploy
build-docs:
mkdocs build
serve-docs:
mkdocs serve
changelog:
$(eval TAG = $(shell cat kaybee/VERSION))
git-chglog "v$(TAG)"