From a9a47541afc1c18bae6055041a582fa2f4a3c831 Mon Sep 17 00:00:00 2001 From: behnazh-w Date: Mon, 5 Jun 2023 07:18:54 +1000 Subject: [PATCH] build(docs): check changes to rst files in Makefile Signed-off-by: behnazh-w --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c836f378e..aa7f75d81 100644 --- a/Makefile +++ b/Makefile @@ -278,9 +278,10 @@ dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-build-epoch.txt: echo $(SOURCE_DATE_EPOCH) > dist/$(PACKAGE_NAME)-$(PACKAGE_VERSION)-build-epoch.txt # Build the HTML documentation from the package's source. +DOCS_SOURCE := $(shell find docs/source -type f -name '*.rst') .PHONY: docs docs: docs/_build/html/index.html -docs/_build/html/index.html: +docs/_build/html/index.html: $(DOCS_SOURCE) $(MAKE) -C docs/ html # Build the Docker image. The image name and tag are read from IMAGE_NAME and RELEASE_TAG