summaryrefslogtreecommitdiffstats
path: root/man/Makefile.am
blob: 9927646f018313b1b78384e7eac5c79a8a8fdc85 (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
AUTOMAKE_OPTIONS = gnu

EXTRA_DIST = conf.py

dist_man_MANS = 

if ENABLE_CLIENT
include Makefile-client.am
endif

if ENABLE_SERVER
include Makefile-server.am
endif

check-local:
	${SPHINX_BUILD} -b man -d doctrees . $(top_builddir)/man

# prevent `make` from running in parallel, sphinx runs better in batch mode.
.PHONY: sphinx-build.stamp

$(dist_man_MANS): sphinx-build.stamp

sphinx-build.stamp:
	${SPHINX_BUILD} -Q -b man -d doctrees -c . . $(top_builddir)/man

clean-local:
	@rm -f *.8
	@rm -rf doctrees