summaryrefslogtreecommitdiffstats
path: root/doc/Makefile.am
blob: f0958b33331dcd2bd91449cbe89f9eda78bdf9e5 (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 = -L --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 \
	*~