summaryrefslogtreecommitdiffstats
path: root/storage/mroonga/vendor/groonga/build/makefiles/sphinx.am
blob: 161abe06757e2a60bc886f3f0059bb1df53a59b1 (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
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
include $(top_srcdir)/doc/files.am
include $(top_srcdir)/build/makefiles/sphinx-build.am

$(html_files): html-build-stamp
$(html_files_relative_from_locale_dir): html-build-stamp

am__nobase_dist_doc_locale_DATA_DIST =
if DOCUMENT_AVAILABLE
doc_localedir = $(docdir)/$(LOCALE)
nobase_dist_doc_locale_DATA =			\
	$(html_files_relative_from_locale_dir)
am__nobase_dist_doc_locale_DATA_DIST +=	\
	$(nobase_dist_doc_locale_DATA)
endif

document_source_files =				\
	$(absolute_source_files)		\
	$(absolute_theme_files)			\
	$(po_files_relative_from_locale_dir)	\
	$(mo_files_relative_from_locale_dir)

required_build_stamps =				\
	html-build-stamp			\
	mo-build-stamp

if DOCUMENT_BUILDABLE
EXTRA_DIST += $(required_build_stamps)
endif

generated_files =				\
	$(DOCTREES_BASE)			\
	html					\
	html-build-stamp

$(mo_files_relative_from_locale_dir): mo-build-stamp

mo-build-stamp: $(po_files_relative_from_locale_dir)
	cd LC_MESSAGES && $(MAKE) build
	@touch $@

if DOCUMENT_BUILDABLE
clean-local: $(clean_targets) clean-doctrees

clean-doctrees:
	rm -rf $(DOCTREES_BASE)

maintainer-clean-local:
	rm -rf -- $(generated_files)
endif

.PHONY: help
.PHONY: html clean-html

if DOCUMENT_BUILDABLE
help:
	@echo "Please use \`make <target>' where <target> is one of"
	@echo "  html      to make standalone HTML files"

html: html-recursive html-build-stamp

clean_targets =					\
	clean-html

$(clean_targets):
	target=`echo $@ | sed -e 's/^clean-//'`;	\
	  rm -rf $${target}-build-stamp $${target}

build_stamps =					\
	html-build-stamp

$(build_stamps): $(document_source_files)
	target=`echo $@ | sed -e 's/-build-stamp$$//'`;	\
	  $(SPHINX_BUILD_COMMAND)			\
	    -Dlanguage=$(LOCALE)			\
	    -d $(DOCTREES_BASE)/$${target}		\
	    -b $${target}				\
	    $(ALLSPHINXOPTS)				\
	    $${target}
	@touch $@
endif