Adjust the sphinx build as the makefile have been removed

This commit is contained in:
Sylvestre Ledru 2021-10-22 11:07:40 +02:00
parent 7e04f98a02
commit daf38c1634
2 changed files with 13 additions and 4 deletions

5
debian/changelog vendored
View File

@ -1,4 +1,4 @@
llvm-toolchain-snapshot (1:14~++20211018020854+59a994e8daee-1~exp1) UNRELEASED; urgency=medium
llvm-toolchain-snapshot (1:14~++20211022081626+13755436bb3d-1~exp1) UNRELEASED; urgency=medium
* Remove the triple patch. it is causing the library search path to fail.
Add a test in debian/qualify-clang.sh to verify we don't regress
@ -15,8 +15,9 @@ llvm-toolchain-snapshot (1:14~++20211018020854+59a994e8daee-1~exp1) UNRELEASED;
* Disable the build of libclc on old Ubuntu (Groovy & focal)
as llvm-spir is too old on these version.
See bug #52200
* Adjust the sphinx build as the makefile have been removed
-- Sylvestre Ledru <sylvestre@debian.org> Mon, 18 Oct 2021 16:14:57 +0200
-- Sylvestre Ledru <sylvestre@debian.org> Fri, 22 Oct 2021 08:21:06 +0200
llvm-toolchain-snapshot (1:14~++20210926041028+6063e6b499c7-1~exp1) experimental; urgency=medium

12
debian/rules vendored
View File

@ -557,8 +557,16 @@ override_dh_prep: build_doc
dh_prep
build_doc:
cd $(CURDIR)/llvm/docs && make -f Makefile.sphinx && make -f Makefile.sphinx man
cd $(CURDIR)/clang/docs && make -f Makefile.sphinx && make -f Makefile.sphinx man
BUILDDIR="_build"; \
ALLSPHINXOPTS="-d $$BUILDDIR/doctrees ."; \
cd $(CURDIR)/llvm/docs && \
sphinx-build -b html $$ALLSPHINXOPTS $$BUILDDIR/html && \
sphinx-build -b man $$ALLSPHINXOPTS $$BUILDDIR/man && \
cd -; \
cd $(CURDIR)/clang/docs && \
sphinx-build -b html $$ALLSPHINXOPTS $$BUILDDIR/html && \
sphinx-build -b man $$ALLSPHINXOPTS $$BUILDDIR/man
-(if test "$(OCAML_ENABLE)" = yes; then \
ninja -C "$(TARGET_BUILD_STAGE2)" $(VERBOSE) ocaml_doc; \
fi)