hgbook

diff en/Makefile @ 16:81454425eee9

Progress on a few fronts, mainly indexing and MQ chapter content
author Bryan O'Sullivan <bos@serpentine.com>
date Mon Jul 03 22:43:52 2006 -0700 (2006-07-03)
parents e9d5b4c3d16b
children e6f4088ebe52
line diff
     1.1 --- a/en/Makefile	Thu Jun 29 00:32:35 2006 -0700
     1.2 +++ b/en/Makefile	Mon Jul 03 22:43:52 2006 -0700
     1.3 @@ -2,7 +2,9 @@
     1.4  	00book.tex \
     1.5  	99book.bib \
     1.6  	99defs.tex \
     1.7 -	mq.tex
     1.8 +	intro.tex \
     1.9 +	mq.tex \
    1.10 +	build_id.tex
    1.11  
    1.12  image-sources := \
    1.13  	mq-stack.svg
    1.14 @@ -26,6 +28,7 @@
    1.15  	pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1)
    1.16  	cp 99book.bib $(dir $@)
    1.17  	cd $(dir $@) && bibtex $(basename $(notdir $@))
    1.18 +	cd $(dir $@) && makeindex $(basename $(notdir $@))
    1.19  	pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1)
    1.20  	pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1)
    1.21  
    1.22 @@ -36,6 +39,7 @@
    1.23  	head -2 $(shell which htlatex) > $(dir $(1))/htlatex.book
    1.24  	cp 99book.bib $(dir $@)
    1.25  	echo '(cd $(dir $@) && bibtex $(basename $(notdir $@)))' >> $(dir $(1))/htlatex.book
    1.26 +	echo '(cd $(dir $@) && makeindex $(basename $(notdir $@)))' >> $(dir $(1))/htlatex.book
    1.27  	head -3 $(shell which htlatex) >> $(dir $(1))/htlatex.book
    1.28  	echo 'echo status $$$$' >>  $(dir $(1))/htlatex.book
    1.29  	chmod 755 $(dir $(1))/htlatex.book
    1.30 @@ -67,5 +71,11 @@
    1.31  examples/.run: $(example-sources)
    1.32  	cd examples && ./run-example
    1.33  
    1.34 +build_id.tex:
    1.35 +	echo 'in-place build' > $@
    1.36 +
    1.37 +build_id:
    1.38 +	hg id | sed -e 's/ tip\>//' > build_id.tex
    1.39 +
    1.40  clean:
    1.41 -	rm -rf html pdf *.eps *.png *.aux *.dvi *.log *.out examples/*.out examples/.run
    1.42 +	rm -rf html pdf *.eps *.png *.aux *.dvi *.log *.out examples/*.out examples/.run buildrev.tex