forked from istio/istio.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.core.mk
66 lines (49 loc) · 1.45 KB
/
Makefile.core.mk
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
ISTIO_SERVE_DOMAIN ?= localhost
export ISTIO_SERVE_DOMAIN
ifeq ($(CONTEXT),production)
baseurl := "$(URL)"
endif
build:
@scripts/build_site.sh
gen: build
@scripts/gen_site.sh ""
gen_nominify: build
@scripts/gen_site.sh "" -no_minify
opt:
@scripts/opt_site.sh
clean_public:
@rm -fr public
clean: clean_public
@rm -fr resources .htmlproofer tmp
lint: clean_public gen_nominify lint-copyright-banner lint-python lint-yaml lint-dockerfiles lint-scripts lint-sass lint-typescript lint-go
@scripts/lint_site.sh
serve: build
@hugo serve --baseURL "http://${ISTIO_SERVE_DOMAIN}:1313/" --bind 0.0.0.0 --disableFastRender
# used by netlify.com when building the site. The tool versions should correspond
# to what is included in the tools repo in docker/build-tools/Dockerfile.
netlify_install:
@npm init -y
@npm install --production --global \
@babel/[email protected] \
@babel/[email protected] \
@babel/[email protected]
@npm install --production --save-dev \
@npm install --save-dev \
@babel/[email protected]
netlify: netlify_install
@scripts/build_site.sh
@scripts/gen_site.sh "$(baseurl)"
netlify_archive: netlify_install archive
archive:
@scripts/gen_archive_site.sh "$(baseurl)"
update_ref_docs:
@scripts/grab_reference_docs.sh
update_operator_yamls:
@scripts/grab_operator_yamls.sh
update_examples:
@scripts/grab_examples.sh
include common/Makefile.common.mk