]> git.notmuchmail.org Git - notmuch/commitdiff
doc: use stamp file for html docs
authorDavid Bremner <david@tethera.net>
Sun, 21 Apr 2019 17:00:18 +0000 (14:00 -0300)
committerDavid Bremner <david@tethera.net>
Wed, 24 Apr 2019 09:53:13 +0000 (06:53 -0300)
These are less time consuming than the texi docs to rebuild (because
the texi rebuild triggers info rebuild), but still take noticable time.

doc/Makefile.local

index fada1fa29a294c55debbbc076f743afeec2f1f50..57104dae94c365282d3e8141cffd00ec071d220b 100644 (file)
@@ -50,8 +50,11 @@ sphinx-html: | $(DOCBUILDDIR)/.roff.stamp
 sphinx-texinfo: | sphinx-html
 sphinx-info: | sphinx-texinfo
 
-sphinx-html:
+sphinx-html: $(DOCBUILDDIR)/.html.stamp
+
+$(DOCBUILDDIR)/.html.stamp: $(ALL_RST_FILES)
        $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(DOCBUILDDIR)/html
+       touch $@
 
 sphinx-texinfo: $(DOCBUILDDIR)/.texi.stamp
 
@@ -142,4 +145,5 @@ $(dir)/config.dox: version.stamp
        echo "INPUT=${srcdir}/lib/notmuch.h" >> $@
 
 CLEAN := $(CLEAN) $(DOCBUILDDIR) $(DOCBUILDDIR)/.roff.stamp $(DOCBUILDDIR)/.texi.stamp
+CLEAN := $(CLEAN) $(DOCBUILDDIR)/.html.stamp
 CLEAN := $(CLEAN) $(MAN_GZIP_FILES) $(MAN_ROFF_FILES) $(dir)/conf.pyc $(dir)/config.dox