-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
18 lines (14 loc) · 763 Bytes
/
Makefile
File metadata and controls
18 lines (14 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
PROJECT_NAME := code2asciidoc
PROJECT_REPO := https://github.com/productsupcom/code2asciidoc
GIT_VERSION_NAME := $(shell git describe --tags --exact-match 2> /dev/null || git symbolic-ref -q HEAD || git rev-parse HEAD)
.PHONY: man
man:
@asciidoctor -a version=${GIT_VERSION_NAME} -b manpage man/code2asciidoc.1.adoc
@gzip man/code2asciidoc.1
markdown:
@asciidoctor docs/readme.adoc -b docbook -a leveloffset=+1 -o - | pandoc --atx-headers --wrap=preserve -t gfm -f docbook - > README.md
@asciidoctor docs/generated/examples.adoc -b docbook -a leveloffset=+1 -o - | pandoc --atx-headers --wrap=preserve -t gfm -f docbook - > docs/generated/examples.md
proto:
@./protoc/bin/protoc -I=examples/ \
--go_out=plugins=grpc:examples \
examples/examples.proto