forked from pseudomuto/protoc-gen-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (19 loc) · 755 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
DOCBOOK_XSL?=/usr/share/xml/docbook/xsl-stylesheets-1.79.1/fo/docbook.xsl
export PATH := ..:$(PATH)
all: doc/example.md doc/example.html doc/example.docbook doc/example.pdf
doc/example.md: proto/*.proto ../protoc-gen-doc
protoc --doc_out=markdown,example.md:doc proto/*.proto
doc/example.html: proto/*.proto ../protoc-gen-doc
protoc --doc_out=html,example.html:doc proto/*.proto
doc/example.docbook: proto/*.proto ../protoc-gen-doc
protoc --doc_out=docbook,example.docbook:doc proto/*.proto
doc/example.pdf: doc/example.docbook
fop -xml doc/example.docbook \
-xsl $(DOCBOOK_XSL) \
-param use.extensions 0 \
-param fop1.extensions 1 \
-param paper.type A4 \
-param page.orientation landscape \
-pdf doc/example.pdf
clean:
-rm doc/*