From ae73345ddcf6ffa1d3d88110462024ec2da60342 Mon Sep 17 00:00:00 2001
From: Mitchel Humpherys <mitchelh@codeaurora.org>
Date: Mon, 7 Dec 2015 09:48:01 -0800
Subject: [PATCH] lrdp-v2: docs: Add watch_html make target

It can be convenient to automatically re-generate documentation as the
source files are edited.  Add a make target for this.

Change-Id: Id3f26e0978bc50f5851200fb2c3d0fe94e2d4d41
---
 docs/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/docs/Makefile b/docs/Makefile
index 61a0dd9..bb6819d 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -51,6 +51,9 @@ html:
 	@echo
 	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
 
+watch_html:
+	while :; do inotifywait -e modify -e create -e delete -e move -r .. && make html; done
+
 dirhtml:
 	$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
 	@echo
-- 
GitLab