Skip to content

Commit 4dab589

Browse files
Configure instead of trying to build
Because building invokes the Makefile, which creates another `.build_doc` inside of `.build_doc` but it uses the wrong source directory without CMakeLists.txt so it fails to actually build. But at least it doesn't infinitely configure itself taking up all the remaining space in my hard drive :)
1 parent 95bd1fb commit 4dab589

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

doc/sphinx/Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@ full-help: $(VENVDIR)
3636
@echo "\n\033[1;31mNOTE: This help texts shows unsupported targets!\033[0m"
3737
@echo "Run 'make help' to see supported targets."
3838

39-
build_mir:
39+
configure:
4040
. $(VENV); \
4141
cd ../../; \
42-
cmake -B .build_doc -DMIR_ENABLE_TESTS=NO; \
43-
cmake --build .build_doc --target doc;
42+
cmake -B .build_doc -DMIR_ENABLE_TESTS=NO -DMIR_PLATFORM=x11;
4443

4544
# Shouldn't assume that venv is available on Ubuntu by default; discussion here:
4645
# https://bugs.launchpad.net/ubuntu/+source/python3.4/+bug/1290847
@@ -78,7 +77,7 @@ run: install
7877
. $(VENV); sphinx-autobuild -b dirhtml "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
7978

8079
# Doesn't depend on $(BUILDDIR) to rebuild properly at every run.
81-
html: install
80+
html: install configure
8281
. $(VENV); cd ../../.build_doc/doc/sphinx; $(SPHINXBUILD) -b dirhtml "$(SOURCEDIR)" "$(BUILDDIR)" -w $(SPHINXDIR)/warnings.txt $(SPHINXOPTS)
8382

8483
epub: install
@@ -97,7 +96,7 @@ clean-doc:
9796
git clean -fx "$(BUILDDIR)"
9897
rm -rf $(SPHINXDIR)/.doctrees
9998

100-
spelling: build_mir html
99+
spelling: html
101100
. $(VENV) ; cd ../../.build_doc/doc/sphinx/; python3 -m pyspelling -c $(SPHINXDIR)/spellingcheck.yaml -j $(shell nproc)
102101

103102
linkcheck: install

0 commit comments

Comments
 (0)