forked from libopenstorage/libopenstorage.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (23 loc) · 736 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
HAS_PROTOC := $(shell command -v protoc 2> /dev/null)
HAS_PROTOGENDOC := $(shell command -v protoc-gen-doc 2> /dev/null)
all: build
images:
$(MAKE) -C docs/images
build: images docs/reference.md
gitbook build docs/ w
serve: images docs/reference.md
gitbook serve docs/ w
api:
ifndef HAS_PROTOC
$(error "Please install protoc 1.3.3 or later")
endif
ifndef HAS_PROTOGENDOC
$(error "Please install protoc-gen-doc. See README.md for more information")
endif
bash getcontent.sh
docs/reference.md: api
# If you have updated any plugins in docs/book.json from https://plugins.gitbook.com/
# you will need to update the modules
update-modules:
cd docs && rm -rf node_modules && gitbook install
.PHONY: all build serve images api