summaryrefslogtreecommitdiffhomepage
path: root/docs/man5/Makefile.am
blob: 247b7ef3d4493580dde7e9ca89eb8862e6a715d8 (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
MAN5_FILES  = \
	tinyproxy.conf.txt

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

man_MANS = \
	$(MAN5_FILES:.txt=.5)

.txt.5:
if HAVE_A2X
	$(AM_V_GEN) $(A2X) $(A2X_ARGS) $<
else
	@echo "*** a2x (asciidoc) is required to regenerate $(@) ***"; exit 1;
endif

CLEANFILES = \
	$(MAN5_FILES:.txt=.5) \
	$(MAN5_FILES:.txt=.xml)

EXTRA_DIST = \
	$(MAN5_FILES:.txt=.5)