Skip to content

Commit 5feaf3e

Browse files
committed
CDRIVER-1979 fix "make distcheck"
1 parent 1640c4e commit 5feaf3e

File tree

5 files changed

+30
-8
lines changed

5 files changed

+30
-8
lines changed

doc/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ html/_static
1111
html/.buildinfo
1212
html/.nojekyll
1313
man/*.3
14+
man/.buildinfo

doc/Makefile.am

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1+
EXTRA_DIST += $(wildcard doc/*.rst)
2+
3+
# TODO: remove libbson-objects.inv once libbson's Sphinx docs are on mongoc.org
4+
EXTRA_DIST += \
5+
doc/conf.py \
6+
doc/githubpages.py \
7+
doc/libbson-objects.inv \
8+
doc/mongoc/__init__.py \
9+
doc/mongoc-theme/globaltoc.html \
10+
doc/mongoc-theme/layout.html \
11+
doc/mongoc-theme/static/mongoc.css_t \
12+
doc/mongoc-theme/static/pygments.css \
13+
doc/mongoc-theme/theme.conf \
14+
doc/taglist/__init__.py
15+
116
dist-hook: man html
17+
18+
clean-local:
19+
-rm -rf doc/man/.buildinfo doc/man/.doctrees
20+
-rm -rf doc/html/.buildinfo doc/html/.doctrees doc/html/_static

doc/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
]
1414

1515
intersphinx_mapping = {
16-
# TODO: update to mongoc.org once libbson 1.6.0 is released.
16+
# TODO: update to mongoc.org once libbson 1.6.0 is released, replace
17+
# 'libbson-objects.inv' here with None and delete the file. Remove from
18+
# doc/Makefile.am too.
1719
'bson': ('https://s3.amazonaws.com/mciuploads/libbson/docs/latest/',
1820
'libbson-objects.inv'),
1921
}

doc/html/Makefile.am

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ CLEANFILES += $(wildcard doc/html/*.html)
22
CLEANFILES += $(wildcard doc/html/*.css)
33
CLEANFILES += $(wildcard doc/html/*.js)
44
CLEANFILES += $(wildcard doc/html/*.png)
5+
CLEANFILES += doc/html/.nojekyll doc/html/objects.inv doc/html/searchindex.js
56

67
.PHONY: doc/html
78

8-
# "E" is "ignore cache", and "d" sets the dir to save cachefiles in.
9+
# "E" is "ignore cache".
910
doc/html:
1011
-mkdir -p doc/html
11-
$(SPHINX_BUILD) -qEW -d /tmp/sphinx-cache-dir doc doc/html
12+
$(SPHINX_BUILD) -qEW $(top_srcdir)/doc doc/html
1213

1314
SPHINX_HTML_FILES = \
1415
doc/html/.nojekyll \

doc/man/Makefile.am

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
MAN_FILES_TO_BUILD = $(patsubst doc/%.page,doc/man/%.3,$(wildcard doc/*.page))
21
BUILT_MAN_FILES = $(wildcard doc/man/*.3)
32
CLEANFILES += $(wildcard doc/man/*.3)
43

@@ -11,12 +10,12 @@ dist_noinst_DATA = $(dist_man_MANS)
1110

1211
man3_MANS = $(BUILT_MAN_FILES)
1312

14-
.PHONY: doc/man
13+
.PHONY: man
1514

16-
doc/man:
15+
# "E" is "ignore cache", "b" is build type.
16+
man:
1717
-mkdir -p doc/man
18-
# "E" is "ignore cache", "d" sets dir for cachefiles, "b" is build type.
19-
$(SPHINX_BUILD) -qEW -d /tmp/sphinx-cache-dir -b man doc doc/man
18+
$(SPHINX_BUILD) -qEW -b man $(top_srcdir)/doc doc/man
2019

2120
man: $(MAN_FILES_TO_BUILD)
2221
EXTRA_DIST += $(MAN_FILES_TO_BUILD)

0 commit comments

Comments
 (0)