changeset 171:8c1703a98266

Add a dependency on htlatex to HTML targets, even though we don't call it. If the files it ships with aren't present, we can't build HTML.
author Bryan O'Sullivan <bos@serpentine.com>
date Mon, 26 Mar 2007 23:57:58 -0700
parents 9cd856b4bd21
children 5f305adeb584
files en/Makefile
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/en/Makefile	Mon Mar 26 23:55:21 2007 -0700
+++ b/en/Makefile	Mon Mar 26 23:57:58 2007 -0700
@@ -110,14 +110,16 @@
 
 html: onepage split
 
-onepage: html/onepage/hgbook.html
+htlatex := /usr/bin/htlatex
 
-split: html/split/hgbook.html
+onepage: $(htlatex) html/onepage/hgbook.html
+
+split: $(htlatex) html/split/hgbook.html
 
 # This is a horrible hack to work around the fact that the htlatex
 # command in tex4ht is itself a horrible hack.  I really don't want to
 # include verbatim the big wad of TeX that is repeated in that script,
-# so instead I mangle the script itself.
+# but I've given up and run a hacked copy as htlatex.book here.
 
 define htlatex
 	mkdir -p $(dir $(1))