git: 20af75300d - main - documentation/Makefile: have toc-clean target check for empty BOOK_LANGS

Ceri Davies ceri at FreeBSD.org
Thu Jul 22 12:02:46 UTC 2021


The branch main has been updated by ceri:

URL: https://cgit.FreeBSD.org/doc/commit/?id=20af75300dc780f5f2e610c7670723688b94ae76

commit 20af75300dc780f5f2e610c7670723688b94ae76
Author:     Ceri Davies <ceri at FreeBSD.org>
AuthorDate: 2021-07-22 12:01:11 +0000
Commit:     Ceri Davies <ceri at FreeBSD.org>
CommitDate: 2021-07-22 12:01:11 +0000

    documentation/Makefile: have toc-clean target check for empty BOOK_LANGS
---
 documentation/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/documentation/Makefile b/documentation/Makefile
index 3ccfc6ca7b..615b162ffa 100644
--- a/documentation/Makefile
+++ b/documentation/Makefile
@@ -137,11 +137,13 @@ build: .PHONY
 	HUGO_DISABLELANGUAGES="${SKIP_LANGS}" ${HUGO_CMD} ${HUGO_ARGS}
 
 toc-clean: .PHONY
+.if !empty(BOOK_LANGS)
 	rm -f $$(${PYTHON_CMD} ./tools/books-toc-parts-creator.py    -l ${BOOK_LANGS} -o)
 	rm -f $$(${PYTHON_CMD} ./tools/books-toc-creator.py          -l ${BOOK_LANGS} -o)
 	rm -f $$(${PYTHON_CMD} ./tools/books-toc-figures-creator.py  -l ${BOOK_LANGS} -o)
 	rm -f $$(${PYTHON_CMD} ./tools/books-toc-tables-creator.py   -l ${BOOK_LANGS} -o)
 	rm -f $$(${PYTHON_CMD} ./tools/books-toc-examples-creator.py -l ${BOOK_LANGS} -o)
+.endif
 
 pgp-clean: .PHONY
 	rm -f static/pgpkeys/pgpkeys.txt


More information about the dev-commits-doc-all mailing list