Skip to content

Commit 13d62ef

Browse files
committed
build(docs): check changes to rst files in Makefile
1 parent 56c7057 commit 13d62ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,11 @@ dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-build-epoch.txt:
188188
echo $(SOURCE_DATE_EPOCH) > dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-build-epoch.txt
189189

190190
# Build the HTML and Markdown documentation from the package's source.
191+
DOCS_SOURCE := $(shell find docs/source -type f -name '*.rst')
191192
.PHONY: docs docs-html docs-md
192193
docs: docs-html docs-md
193194
docs-html: docs/_build/html/index.html
194-
docs/_build/html/index.html: check test
195+
docs/_build/html/index.html: $(DOCS_SOURCE) check test
195196
if [ ! -d docs/source/_static ]; then \
196197
mkdir docs/source/_static/; \
197198
fi

0 commit comments

Comments
 (0)