summaryrefslogtreecommitdiffstats
path: root/doc/Makefile.am
blob: 01e1af90bbf0cf06bd13d71e6a15b1c530f0d0e3 (plain)
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
if BUILD_MAN
man_MANS = nft.8 libnftables-json.5 libnftables.3
endif

A2X_OPTS_MANPAGE = --doctype manpage --format manpage -D ${builddir}

ASCIIDOC_MAIN = nft.txt
ASCIIDOC_INCLUDES = \
       data-types.txt \
       payload-expression.txt \
       primary-expression.txt \
       stateful-objects.txt \
       statements.txt
ASCIIDOCS = ${ASCIIDOC_MAIN} ${ASCIIDOC_INCLUDES}

nft.8: ${ASCIIDOCS}
	${AM_V_GEN}${A2X} ${A2X_OPTS_MANPAGE} $<

.adoc.3:
	${AM_V_GEN}${A2X} ${A2X_OPTS_MANPAGE} $<

.adoc.5:
	${AM_V_GEN}${A2X} ${A2X_OPTS_MANPAGE} $<

EXTRA_DIST = ${ASCIIDOCS} libnftables-json.adoc libnftables.adoc

CLEANFILES = \
	nft.8 \
	libnftables-json.5 \
	libnftables.3 \
	*~