Penguin
Diff: LatexMakefiles
EditPageHistoryDiffInfoLikePages

Differences between version 6 and previous revision of LatexMakefiles.

Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History

Newer page: version 6 Last edited on Thursday, October 16, 2003 6:39:33 pm by JohnMcPherson Revert
Older page: version 5 Last edited on Thursday, October 16, 2003 5:34:04 pm by SamJansen Revert
@@ -56,18 +56,25 @@
 Serious people use bibtex to manage their references. Here is a makefile that should run bibtex and latex the appropriate number of times. 
 (I've removed the extra targets and steps I had in here to run musixtex as well... -- JohnMcPherson) 
  
 <verbatim> 
+TARGET=proposal  
+  
 # make pdf by default 
 all: proposal.pdf 
  
 # it doesn't really need the .dvi, but this way all the refs are right 
 %.pdf : %.dvi 
  pdflatex $* 
  
 ${TARGET}.bbl: ../bib/music.bib 
+# in case we don't already have a .aux file listing citations  
+# this should probably be a separate makefile target/dependency instead  
+# of doing it every time... but *shrug*  
+ latex ${TARGET}.tex  
+# get the citations out of the bibliography  
  bibtex ${TARGET} 
-# do it again, so that it will run twice (to get cross-refs)  
+# do it again in case there are out-of-order cross-references  
  @latex ${TARGET}.tex 
  
 ${TARGET}.dvi: ${TARGET}.bbl ${TARGET}.tex 
  @latex ${TARGET}.tex