comparison en/Makefile @ 26:1bc6c1f0192a

More MQ content. Skeletal preface.
author Bryan O'Sullivan <bos@serpentine.com>
date Tue, 11 Jul 2006 23:48:25 -0700
parents a752b0fd3c10
children 6e988159394b cc1e6f1d7161
comparison
equal deleted inserted replaced
25:9d5b6d303ef5 26:1bc6c1f0192a
4 4
5 sources := \ 5 sources := \
6 00book.tex \ 6 00book.tex \
7 99book.bib \ 7 99book.bib \
8 99defs.tex \ 8 99defs.tex \
9 preface.tex \
9 intro.tex \ 10 intro.tex \
10 mq.tex \ 11 mq.tex \
11 build_id.tex 12 build_id.tex
12 13
13 image-sources := \ 14 image-sources := \
36 cp 99book.bib $(dir $@) 37 cp 99book.bib $(dir $@)
37 cd $(dir $@) && bibtex $(basename $(notdir $@)) 38 cd $(dir $@) && bibtex $(basename $(notdir $@))
38 cd $(dir $@) && makeindex $(basename $(notdir $@)) 39 cd $(dir $@) && makeindex $(basename $(notdir $@))
39 TEXINPUTS=$(dir $<): pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1) 40 TEXINPUTS=$(dir $<): pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1)
40 TEXINPUTS=$(dir $<): pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1) 41 TEXINPUTS=$(dir $<): pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1)
42 if grep 'Reference.*undefined' $(@:.pdf=.log); then exit 1; fi
41 endef 43 endef
42 44
43 pdf/hgbook.pdf: $(sources) $(image-sources:%.svg=%_pdf.png) examples 45 pdf/hgbook.pdf: $(sources) $(image-sources:%.svg=%_pdf.png) examples
44 $(call pdf) 46 $(call pdf)
45 47