# # Makefile.template # # This file will be expanded by the arts2make.pl program into a # Makefile that can be used to process the book. First, edit # this template as indicated in the comments. Then run the # arts2make.pl program, supplying a command line argument # specifying the name of the directory containing the papers, # if they are not in this directory: # # arts2make.pl -paperdir dirname # Specify the names of the programs listed below. The default # is to run latex with no options, and to run the Rokicki dvips # program as a filter. If the proofs you are sending to the # publisher are of a different size than the final book, consider # modifying the style file to use the font and page size of the # final book, and running dvips with a magnification option to # make the proofs have the desired size. LATEX = latex #DVIPS = dvips -f DVIPS = dvips -x 1095 -f # Specify the name of the style file(s) supplied by the publisher # or by you, if you want to make the book depend on them (i.e., # redo everything if you change the style file. STYLE = bookstuff.sty aspconf.sty # This tag will be expanded into the list of papers it finds in # the papers directory. # This tag will be expanded into the list of all of the EPS # files it finds in the papers directory. # The rules for the printed book. book.ps: book.dvi #$(FIGURES) book.dvi: $(PAPERS) book.aind book.ind $(STYLE) # The rules for the online book. # Define the latex2html command with options: LATEX2HTML = latex2html -t "ADASS VI Electronic Proceedings" -split 2 -link 1 -address "payne@stsci.edu" book.l2h.html: rm -f book/* book/.* ln htmlbookstuff.sty book ln aspconf.sty book $(LATEX2HTML) book.l2h # # Clean up files that can be easily made again: clean: rm -f *.ltx *.aind *.aind.temp *.aidx rm -f *.ind *.idl *.ilg *.aux *.toc *.log realclean: rm -f *.ltx *.aind *.aind.temp *.aidx rm -f *.ind *.idl *.ilg *.aux *.toc *.log rm -f *.dvi *.ps # Use this rule to rebuild chapter files for articles that have # been changed. update_papers: $(PAPERS) # Use this rule to rebuild all of the chapter files, regardless # of whether they have changed or not (useful if you can't use # make). update_all_papers: # New suffixes for new rules. # # .ltx are files prepared by filtering the .tex files from the # ../papers directory # .l2h are files prepared by filtering the .tex skeleton files # in this directory, to latex for producing simple .aux files # and for feeding to latex2html # .tex, .dvi, .ps you know # .idx is the makeindex input file, produced by latex # .ind is the makeindex output file .SUFFIXES: .ltx .l2h .tex .dvi .ps .ind .idx .aind .aidx .html # Don't use the line # sed "s/.*\\\\begin{rawhtml}/\\\\begin{rawhtml}/" | \ # when doing the book, only for the electronic version. # #.tex.ltx: # sed "s/\\\\documentstyle/% &/" $< | \ # sed "s/\\\\begin{document}/% &/" | \ # sed "s/\\\\title/\\\\chapter/" | \ # sed "s/\\\\begin{abstract}/\\\\label{$*}&/" | \ # sed "s/.*\\\\begin{rawhtml}/\\\\begin{rawhtml}/" | \ # sed "s/\\\\end{document}/% &/" > $@ # for the book: .tex.ltx: art2chap.pl $< .tex.l2h: art2chap.pl -html $< $(LATEX) $@ $(LATEX) $@ .ltx.dvi: $(LATEX) $* .tex.dvi: $(LATEX) $* TEXINPUTS = ".:..:$(VPATH)" .dvi.ps: $(DVIPS) $< > $*.ps .idx.ind: makeindex $< .tex.aidx: $(LATEX) $* .tex.idx: $(LATEX) $* .aidx.aind: rm -f $@ $@.temp makeindex -o $@.temp $< sed "s/\\\\begin{theindex}/\\\\begin{theaindex}/" $@.temp | sed "s/\\\\end{theindex}/\\\\end{theaindex}/" > $@