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

if BUILD_PDF
pdf_DATA = nft.pdf libnftables-json.pdf libnftables.pdf
endif

pdfdir=${docdir}/pdf

.xml.pdf:
	${AM_V_GEN}dblatex -q -t pdf -o ${builddir}/$@ $<

.xml.8:
	${AM_V_GEN}${DB2MAN} --xinclude $<

.adoc.pdf:
	a2x --doctype manpage --format pdf -D ${builddir} $<

.adoc.3:
	a2x --doctype manpage --format manpage -D ${builddir} $<

.adoc.5:
	a2x --doctype manpage --format manpage -D ${builddir} $<

EXTRA_DIST = nft.xml libnftables-json.adoc libnftables.adoc

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