forked from FDio/site
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (24 loc) · 651 Bytes
/
Makefile
File metadata and controls
33 lines (24 loc) · 651 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
VPPDOC_TARGET_DIR := ./static/docs/vpp/
VPPDOC_SRC_DIR := ${VPP_DIR}/build-root/docs/html/.
VERSION ?= master
check-%:
@: $(if $(value $*),,$(error $* is undefined))
.PHONY: init
init: check-VPP_DIR
$(MAKE) -C ${VPP_DIR} docs
.PHONY: vppdoc
vppdoc: init check-VERSION check-VPP_DIR
@rm -rf ${VPPDOC_TARGET_DIR}/${VERSION}
@cp -r ${VPPDOC_SRC_DIR} ${VPPDOC_TARGET_DIR}/${VERSION}
@echo "Built docs for VPP $(shell ${VPP_DIR}/src/scripts/version)"
build:
git submodule update --init --recursive
update-themes:
git submodule update --remote
yarn:
yarn
serve: yarn
hugo server \
--buildDrafts \
--buildFuture \
--disableFastRender