Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jul 2021 12:02:46 GMT
From:      Ceri Davies <ceri@FreeBSD.org>
To:        doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org
Subject:   git: 20af75300d - main - documentation/Makefile: have toc-clean target check for empty BOOK_LANGS
Message-ID:  <202107221202.16MC2kbZ074959@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by ceri:

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

commit 20af75300dc780f5f2e610c7670723688b94ae76
Author:     Ceri Davies <ceri@FreeBSD.org>
AuthorDate: 2021-07-22 12:01:11 +0000
Commit:     Ceri Davies <ceri@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107221202.16MC2kbZ074959>