forked from flux-framework/flux-sched
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
82 lines (64 loc) · 1.76 KB
/
Makefile.am
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
.NOTPARALLEL:
SUBDIRS = . test
MAN5_FILES = \
man5/flux-config-sched-fluxion-qmanager.5 \
man5/flux-config-sched-fluxion-resource.5
RST_FILES = \
$(MAN5_FILES:.5=.rst)
MAN_FILES = \
$(MAN5_FILES)
if ENABLE_DOCS
man_MANS = \
$(MAN5_FILES) \
$(MAN8_FILES)
endif
.SUFFIXES = .rst .5
sphinx_man = $(sphinx_man_$(V))
sphinx_man_ = $(sphinx_man_$(AM_DEFAULT_VERBOSITY))
sphinx_man_0 = @echo " BUILD manpages";
sphinx_html = $(sphinx_html_$(V))
sphinx_html_ = $(sphinx_html_$(AM_DEFAULT_VERBOSITY))
sphinx_html_0 = @echo " BUILD html";
sphinx_verbose_flags = $(sphinx_verbose_flags_$(V))
sphinx_verbose_flags_ = $(sphinx_verbose_flags_$(AM_DEFAULT_VERBOSITY))
sphinx_verbose_flags_0 =
sphinx_verbose_flags_1 = -v
sphinx_verbose_flags_2 = -vv
STDERR_DEVNULL = $(stderr_devnull_$(V))
stderr_devnull_ = $(stderr_devnull_$(AM_DEFAULT_VERBOSITY))
stderr_devnull_0 = >/dev/null 2>&1
$(MAN_FILES): conf.py $(RST_FILES)
$(sphinx_man) \
PYTHONPATH=$(PYTHONPATH):$(abs_srcdir) \
SPHINX_BUILDDIR=$(abs_builddir) $(PYTHON) \
-m sphinx $(sphinx_verbose_flags) -b man $(srcdir) ./man \
$(STDERR_DEVNULL)
@echo " MV manpages"; \
for sec in 1 3 5 7 8; do \
set -- $(abs_builddir)/man/*.$$sec; \
if test -f $$1; then \
$(MKDIR_P) man$$sec && \
mv -f "$$@" man$$sec/; \
fi; \
done
.PHONY: html
html: conf.py $(RST_FILES)
$(sphinx_html) \
PYTHONPATH=$(PYTHONPATH):$(abs_srcdir) \
SPHINX_BUILDDIR=$(abs_builddir) $(PYTHON) \
-m sphinx $(sphinx_verbose_flags) -b html $(srcdir) ./html \
$(STDERR_DEVNULL)
EXTRA_DIST = \
conf.py \
manpages.py \
domainrefs.py \
index.rst \
requirements.txt \
man5/index.rst \
$(RST_FILES)
CLEANFILES = \
$(MAN_FILES)
clean-local:
-rm -rf man python
distclean-local:
-rm -rf doctrees