-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
49 lines (40 loc) · 1.25 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
ADDLICENSE ?= go run -modfile hack/tools/go.mod github.com/google/addlicense
WOKE ?= go run -modfile hack/tools/go.mod github.com/get-woke/woke
ifeq ($(shell command -v yarn && echo yes),)
$(error "Yarn (and node) must be installed")
endif
.PHONY: serve
serve:
echo "Open docs at: http://localhost:1313"
# wokeignore:rule=disable
hugo server --disableFastRender
.PHONY: release
release:
if [ -z "$$version" ]; then echo "\nERROR: must provide version=v#.#.#\n" && exit 1; fi
./hack/new-release.sh "$$version"
.PHONY: gen-crd-reference
gen-crd-reference:
./hack/crds.rb
.PHONY: dev-dependencies
dev-dependencies:
yarn install
.PHONY: update-live-editor
update-live-editor:
$(MAKE) -C live-editor build install
.PHONY: lint
lint: dev-dependencies
yarn lint
.PHONY: copyright
copyright:
$(ADDLICENSE) \
-f ./hack/boilerplate.go.txt \
-ignore static/\*\* \
-ignore content/docs/\*/crds/\*.yaml \
-ignore content/docs/\*/tutorials/files/\*/\*.yaml \
-ignore themes/\*\* \
-ignore live-editor/node_modules/\*\* \
.
.PHONY: woke
woke:
#$(WOKE) -c https://via.vmw.com/its-woke-rules # Short URL currently offline
$(WOKE) -c https://vmw-its-woke-client-rules-resources-prod.s3.us-west-2.amazonaws.com/public/its-woke-rules.yaml --exit-1-on-failure