blob: 8a806cc6c215f3b549aeaff031891059e140756f (
plain) (
blame)
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
|
# See LICENSE for licensing information.
PROJECT = gun
# Options.
CT_OPTS += -pa test -ct_hooks gun_ct_hook [] -boot start_sasl
PLT_APPS = ssl
# Dependencies.
DEPS = cowlib ranch
dep_cowlib = git https://github.com/ninenines/cowlib 1.3.0
TEST_DEPS = ct_helper
dep_ct_helper = git https://github.com/extend/ct_helper.git master
# Standard targets.
include erlang.mk
# AsciiDoc.
.PHONY: asciidoc asciidoc-guide asciidoc-manual clean-asciidoc
MAN_INSTALL_PATH ?= /usr/local/share/man
MAN_SECTIONS ?= 3 7
asciidoc: clean-asciidoc asciidoc-guide asciidoc-manual
asciidoc-guide:
a2x -v -f pdf doc/src/guide/book.asciidoc && mv doc/src/guide/book.pdf doc/guide.pdf
a2x -v -f chunked doc/src/guide/book.asciidoc && mv doc/src/guide/book.chunked/ doc/html/
asciidoc-manual:
for f in doc/src/manual/*.asciidoc ; do \
a2x -v -f manpage $$f ; \
done
for s in $(MAN_SECTIONS); do \
mkdir -p doc/man$$s/ ; \
mv doc/src/manual/*.$$s doc/man$$s/ ; \
gzip doc/man$$s/*.$$s ; \
done
clean:: clean-asciidoc
clean-asciidoc:
$(gen_verbose) rm -rf doc/html/ doc/guide.pdf doc/man3/ doc/man7/
install-docs:
for s in $(MAN_SECTIONS); do \
mkdir -p $(MAN_INSTALL_PATH)/man$$s/ ; \
install -g 0 -o 0 -m 0644 doc/man$$s/*.gz $(MAN_INSTALL_PATH)/man$$s/ ; \
done
|