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, 03 Jul 2006 22:43:52 -0700
parents e9d5b4c3d16b
children e6f4088ebe52
line wrap: on
line diff
--- a/en/Makefile	Mon Jul 03 17:58:29 2006 -0700
+++ b/en/Makefile	Mon Jul 03 22:43:52 2006 -0700
@@ -2,7 +2,9 @@
 	00book.tex \
 	99book.bib \
 	99defs.tex \
-	mq.tex
+	intro.tex \
+	mq.tex \
+	build_id.tex
 
 image-sources := \
 	mq-stack.svg
@@ -26,6 +28,7 @@
 	pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1)
 	cp 99book.bib $(dir $@)
 	cd $(dir $@) && bibtex $(basename $(notdir $@))
+	cd $(dir $@) && makeindex $(basename $(notdir $@))
 	pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1)
 	pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1)
 
@@ -36,6 +39,7 @@
 	head -2 $(shell which htlatex) > $(dir $(1))/htlatex.book
 	cp 99book.bib $(dir $@)
 	echo '(cd $(dir $@) && bibtex $(basename $(notdir $@)))' >> $(dir $(1))/htlatex.book
+	echo '(cd $(dir $@) && makeindex $(basename $(notdir $@)))' >> $(dir $(1))/htlatex.book
 	head -3 $(shell which htlatex) >> $(dir $(1))/htlatex.book
 	echo 'echo status $$$$' >>  $(dir $(1))/htlatex.book
 	chmod 755 $(dir $(1))/htlatex.book
@@ -67,5 +71,11 @@
 examples/.run: $(example-sources)
 	cd examples && ./run-example
 
+build_id.tex:
+	echo 'in-place build' > $@
+
+build_id:
+	hg id | sed -e 's/ tip\>//' > build_id.tex
+
 clean:
-	rm -rf html pdf *.eps *.png *.aux *.dvi *.log *.out examples/*.out examples/.run
+	rm -rf html pdf *.eps *.png *.aux *.dvi *.log *.out examples/*.out examples/.run buildrev.tex