comparison en/Makefile @ 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
comparison
equal deleted inserted replaced
170:9cd856b4bd21 171:8c1703a98266
108 pdf/hgbook.pdf: $(sources) $(image-pdf) examples 108 pdf/hgbook.pdf: $(sources) $(image-pdf) examples
109 $(call pdf) 109 $(call pdf)
110 110
111 html: onepage split 111 html: onepage split
112 112
113 onepage: html/onepage/hgbook.html 113 htlatex := /usr/bin/htlatex
114 114
115 split: html/split/hgbook.html 115 onepage: $(htlatex) html/onepage/hgbook.html
116
117 split: $(htlatex) html/split/hgbook.html
116 118
117 # This is a horrible hack to work around the fact that the htlatex 119 # This is a horrible hack to work around the fact that the htlatex
118 # command in tex4ht is itself a horrible hack. I really don't want to 120 # command in tex4ht is itself a horrible hack. I really don't want to
119 # include verbatim the big wad of TeX that is repeated in that script, 121 # include verbatim the big wad of TeX that is repeated in that script,
120 # so instead I mangle the script itself. 122 # but I've given up and run a hacked copy as htlatex.book here.
121 123
122 define htlatex 124 define htlatex
123 mkdir -p $(dir $(1)) 125 mkdir -p $(dir $(1))
124 cp 99book.bib $(dir $(1)) 126 cp 99book.bib $(dir $(1))
125 TEXINPUTS=$(dir $(2)): ./htlatex.book $(2) "bookhtml,html4-uni,$(3)" " -cunihtf -utf8" "$(dir $(1))" "$(call latex-options,$(1))" || (rm -f $(1); exit 1) 127 TEXINPUTS=$(dir $(2)): ./htlatex.book $(2) "bookhtml,html4-uni,$(3)" " -cunihtf -utf8" "$(dir $(1))" "$(call latex-options,$(1))" || (rm -f $(1); exit 1)