branch: scratch/hyperbole-merge-7.0.2b
commit c0bd5039c510f533b204c13483df4812e713ef15
Author: Mats Lidell <[email protected]>
Commit: Mats Lidell <[email protected]>
Rebuild doc when doc sources have changed
---
Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index 56640d2..cfdf7ea 100644
--- a/Makefile
+++ b/Makefile
@@ -256,18 +256,18 @@ version: doc
# Build the Info, HTML and Postscript versions of the user manual and
README.md.html.
doc: info html pdf README.md.html
-texinfo: $(man_dir)/hyperbole.texi $(man_dir)/version.texi
$(man_dir)/hkey-help.txt $(man_dir)/im/*.png
+TEXINFO_SRC = $(man_dir)/hyperbole.texi $(man_dir)/version.texi
$(man_dir)/hkey-help.txt $(man_dir)/im/*.png
info: $(man_dir)/hyperbole.info
-$(man_dir)/hyperbole.info: texinfo
+$(man_dir)/hyperbole.info: $(TEXINFO_SRC)
cd $(man_dir) && $(TEXI2INFO) hyperbole.texi
html: $(man_dir)/hyperbole.html
-$(man_dir)/hyperbole.html: texinfo $(man_dir)/hyperbole.css
+$(man_dir)/hyperbole.html: $(TEXINFO_SRC) $(man_dir)/hyperbole.css
cd ${man_dir} && $(TEXI2HTML) hyperbole.texi
pdf: $(man_dir)/hyperbole.pdf
-$(man_dir)/hyperbole.pdf: texinfo
+$(man_dir)/hyperbole.pdf: $(TEXINFO_SRC)
cd $(man_dir) && $(TEXI2PDF) hyperbole.texi
# github-markdown is an npm, installed with: npm install markdown-to-html -g