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

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}

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

CLEANFILES = \
	*~

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} $<

CLEANFILES += ${man_MANS}
endif