-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (26 loc) · 737 Bytes
/
Makefile
File metadata and controls
38 lines (26 loc) · 737 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
.PHONY: generate build install test clean lint spec-update docs-generate docs-dev docs-build docs
VERSION ?= dev
LDFLAGS := -s -w -X github.com/sofq/confluence-cli/cmd.Version=$(VERSION)
SPEC_URL := https://dac-static.atlassian.com/cloud/confluence/openapi-v2.v3.json
generate:
go run ./gen/...
build:
go build -ldflags "$(LDFLAGS)" -o cf .
install:
go install -ldflags "$(LDFLAGS)" .
test:
go test ./...
clean:
rm -f cf
rm -f cmd/generated/*.go
lint:
golangci-lint run
spec-update:
curl -sL "$(SPEC_URL)" -o spec/confluence-v2.json
docs-generate:
go run ./cmd/gendocs/... website
docs-dev: docs-generate
cd website && npx vitepress dev
docs-build: docs-generate
cd website && npx vitepress build
docs: docs-build