summaryrefslogtreecommitdiffhomepage
path: root/docs/man8/Makefile.am
blob: bf2c09c08eb5191ae3d80d66ef628d7df08cfaf9 (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
33
MAN8_FILES = \
	tinyproxy.txt

if HAVE_XMLLINT
A2X_ARGS = -d manpage -f manpage
else
A2X_ARGS = -d manpage -f manpage -L
endif

ASCIIDOCTOR_ARGS = -b manpage

man_MANS = \
	$(MAN8_FILES:.txt=.8)

.txt.8:
if HAVE_A2X
	$(AM_V_GEN) $(A2X) $(A2X_ARGS) $<
else
if HAVE_ASCIIDOCTOR
	$(AM_V_GEN) $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) $<
else
	@echo "*** a2x (asciidoc) or asciidoctor is required to regenerate $(@) ***"; exit 1;
endif
endif

MAINTAINERCLEANFILES = \
	$(MAN8_FILES:.txt=.8)

CLEANFILES = \
	$(MAN8_FILES:.txt=.xml)

EXTRA_DIST= \
	$(MAN8_FILES:.txt=.8)