# Makefile for a Book defined in XHTML, and printed using LaTeX # J. Watlington, 9/25/06 # # make # make all - Make the PDF version of the book # make clean - remove the intermediate LaTeX files (optional) # make index - rebuild the index database (must be done manually) # This indicates where the XHTML files for the recipes are kept VPATH = ../ # These indicate the name of the book BOOKINDEX = ../bookindex.html INDEX_STYLESHEET = bookindex.xsl INDEX = ./htmlmakeindex.pl XSLT = xalan XSLT_OPTIONS = -TEXT -XSL ${INDEX_STYLESHEET} # This huge variable contains the names of the intermediate LaTeX files, # one per recipe. # IDX_FILES = cheeseolivepuffs.idx cheesestraws.idx crabspread.idx \ teriyakibeef.idx bitesizeturnovers.idx nutsandbolts.idx \ breadbutterpickles.idx sweetpickles.idx pepperrelish.idx \ bubblebreakfastcake.idx banananutbread.idx broccolicornbread.idx \ cornbread.idx lf_cornbread.idx muffins.idx hotrolls.idx \ hushpuppies.idx breakfastcasserole.idx arrozconpollo.idx \ bbqchicken.idx chickendivan.idx chickendressingcass.idx \ chickenrice.idx chickendumplings.idx chickenroyal.idx \ chickentortilla.idx hotchickensalad.idx spicychicken.idx \ chinesetunacasserole.idx lomosaltado.idx cheeseburgerpie.idx \ meatballs.idx meatbirds.idx ranchchicken.idx asparaguscasserole.idx \ broccolicasserole.idx candiedsweet.idx candiedsweet2.idx \ chinesebroccoli.idx cornpudding.idx cornsouffle.idx corndressing.idx \ southernfriedcabbage.idx macaronicheese.idx whitesauce.idx \ gritscasserole.idx gritscasserole2.idx gritscasserole3.idx \ greenbeancass.idx mexicancornbd.idx papashuancaina.idx \ parmesanpotatoes.idx potatocasserole.idx potatocasserole2.idx \ potatoesaugratin.idx spinachcasserole.idx spinachcasserole2.idx \ spinachtomatocass.idx sweetpotatocasserole.idx sweetcarrots.idx \ zucchinibake.idx zucchiniquiche.idx cokesalad.idx \ holidaysalad.idx hotfruit.idx layeredsalad.idx marinatedcarrots.idx \ cranberrysalad.idx peachsalad.idx pineapplecheesesalad.idx \ strawberrysalad.idx applecake.idx applecrisp.idx chesstarts.idx \ chesspie.idx chocolatechess.idx chocolatedip.idx doughnutglazechoc.idx \ coconutpecanfrosting.idx coconutfrosting.idx coffeecake.idx \ crazychoccake.idx bakedcustard.idx boiledcustard.idx cherrycake.idx \ mincheesecakes.idx divinitycandy.idx doughnuts.idx doughnutglaze.idx \ englishtoffee.idx germanchocolatecake.idx gingerbread.idx \ lazydaisycake.idx lemonsauce.idx lemonpoppymuffins.idx lemonpie.idx \ lemonsquares.idx washingtoncandy.idx orangesherbert.idx \ easyorangesherbert.idx peanutbrittle.idx peanutbutterbrownie.idx \ peanutbuttercup.idx peanutbutteryum.idx pecanpie.idx \ pineappleupdowncake.idx pumpkinpie.idx punchbowlcake.idx \ spongecake.idx sweetlemonbread.idx bbqsauce.idx figpreserves.idx \ hamsauce.idx raisinsauce.idx asianmarinade.idx beefmarinade.idx \ southwesternmarinade.idx currypowder.idx granola.idx spicetea.idx \ artichokes.idx frenchdressing.idx bakedapples.idx gravy.idx \ bakedbeans.idx cinnamonrolls.idx # These are the actual Makefile rules all: ${BOOKINDEX} index: ${BOOKINDEX} # Yes, we do depend on the executable as well as the IDX files, # as the header and footer of the index file are embedded in it. ${BOOKINDEX}: ${IDX_FILES} ${INDEX} ${INDEX} ${BOOKINDEX} ${IDX_FILES} clean: rm -f ${IDX_FILES} %.idx: %.html ${INDEX_STYLESHEET} ${XSLT} ${XSLT_OPTIONS} -IN $< -OUT $@