forked from grpc/grpc.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (30 loc) · 864 Bytes
/
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
DRAFT_ARGS = --buildDrafts --buildFuture
BUILD_ARGS = --minify
ifeq (draft, $(or $(findstring draft,$(HEAD)),$(findstring draft,$(BRANCH))))
BUILD_ARGS += $(DRAFT_ARGS)
endif
clean:
rm -rf public/* resources
serve:
@./check_hugo.sh
hugo serve
serve-drafts:
@./check_hugo.sh
hugo serve $(DRAFT_ARGS)
serve-production: clean
@./check_hugo.sh
hugo serve -e production --minify
production-build: clean
@./check_hugo.sh
hugo --minify
preview-build: clean
@./check_hugo.sh
hugo --baseURL $(DEPLOY_PRIME_URL) \
-e development $(BUILD_ARGS)
link-checker-setup:
curl https://raw.githubusercontent.com/wjdp/htmltest/master/godownloader.sh | bash
run-link-checker:
bin/htmltest
check-internal-links: production-build link-checker-setup run-link-checker
check-all-links: production-build link-checker-setup
bin/htmltest --conf .htmltest.external.yml