Skip to content

Commit 6047b12

Browse files
authored
build(docs): check changes to rst files in Makefile (#282)
Signed-off-by: behnazh-w <behnaz.hassanshahi@oracle.com>
1 parent 75e1b73 commit 6047b12

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
@@ -278,9 +278,10 @@ dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-build-epoch.txt:
278278
echo $(SOURCE_DATE_EPOCH) > dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-build-epoch.txt
279279

280280
# Build the HTML documentation from the package's source.
281+
DOCS_SOURCE := $(shell find docs/source -type f -name '*.rst')
281282
.PHONY: docs
282283
docs: docs/_build/html/index.html
283-
docs/_build/html/index.html:
284+
docs/_build/html/index.html: $(DOCS_SOURCE)
284285
$(MAKE) -C docs/ html
285286

286287
# Build the Docker image. The image name and tag are read from IMAGE_NAME and RELEASE_TAG

0 commit comments

Comments
 (0)