forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
77 lines (58 loc) · 1.5 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
BUNDLER_VERSION = 1.15.1
BUNDLE = bundle _${BUNDLER_VERSION}_
JEKYLL = ${BUNDLE} exec jekyll
deep_clean:
rm -rf \
.bundle \
.sass-cache \
api \
node_modules \
vendor \
_data/config \
_data/admin-rest-api-swagger.json
doxygen_install:
rm -rf scripts/doxygen
scripts/doxygen-install.sh
cpp_doc_gen:
scripts/doxygen-doc-gen.sh
clean_local:
rm -rf generated
ruby_setup:
gem install bundler \
-v ${BUNDLER_VERSION} \
--no-rdoc \
--no-ri
NOKOGIRI_USE_SYSTEM_LIBRARIES=true ${BUNDLE} install \
--path vendor/bundle
python_setup:
pip install pdoc pygments
setup: ruby_setup
travis_setup: ruby_setup
travis_build:
scripts/build-all-versions.sh
travis_publish:
scripts/publish-website.sh
build: api_docs
scripts/build-all-versions.sh
serve: clean_local
${JEKYLL} serve \
--incremental \
--config _config.yml,_config.local.yml
javadoc:
rm -rf api
scripts/javadoc-gen.sh
python_doc_gen:
scripts/python-doc-gen.sh
swagger_definition_copy:
(cd $(shell git rev-parse --show-toplevel) && \
cp pulsar-broker/target/docs/swagger.json site/_data/admin-rest-api-swagger.json)
protobuf_doc_gen:
scripts/protobuf-doc-gen.sh
protobuf_setup:
rm -rf protoc-gen-doc scripts/protoc-gen-doc
git clone https://github.com/pseudomuto/protoc-gen-doc
rm -rf protoc-gen-doc/.git
mv protoc-gen-doc scripts
(cd scripts/protoc-gen-doc && PROTOBUF_PREFIX=$(shell brew --prefix protobuf) qmake && make)
api_docs: javadoc python_doc_gen cpp_doc_gen
publish: deep_clean setup swagger_definition_copy build