# # Makefile to latex document, uncompress .ps files etc... # original version : Mark Ito # modified: # # use for hadron05 paper - Elton Smith 9/30/03 # html output de-activated for now # halld_safety - Elton Smith 10/16/06 # cc_geometry - Elton Smith 10/16/06 # bcal_specs - Elton Smith 04/02/07 # halld_specs - Elton Smith 08/27/07 # feldman_cousins - Elton Smith 09/17/07 # bcal_fibers_spec - Elton Smith 09/26/07 # # TEX_FILES_0 = bcal_fibers_spec bcal_fibers_proposal TEX_FILES = $(addsuffix .tex,$(TEX_FILES_0)) # add .tex suffix PS_FILES_0 = JLab_logo PS_FILES = $(addsuffix .ps,$(PS_FILES_0)) # add .ps suffix EPS_FILES_0 = EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix all : bcal_fibers_spec.ps bcal_fibers_proposal.ps bcal_fibers_spec.dvi : $(TEX_FILES) Makefile bcal_fibers_spec.bbl $(PS_FILES) \ $(EPS_FILES) # make the dvi file latex bcal_fibers_spec latex bcal_fibers_spec bcal_fibers_spec.bbl : bcal_fibers_spec.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) latex bcal_fibers_spec bibtex bcal_fibers_spec tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f bcal_fibers_spec.tar rm -f bcal_fibers_spec.tar.gz rm -rf bcal_fibers_spec mkdir bcal_fibers_spec cp bcal_fibers_spec.ps bcal_fibers_spec # cp bcal_fibers_proposal.ps bcal_fibers_spec # cp bcal_fibers_proposal.pdf bcal_fibers_spec cp bcal_fibers_spec.bib bcal_fibers_spec cp bcal_fibers_spec.tex bcal_fibers_spec # cp $(TEX_FILES) bcal_fibers_spec # cp $(EPS_FILES) bcal_fibers_spec cp $(PS_FILES) bcal_fibers_spec # cp *.root bcal_fibers_spec cp bcal_fibers_spec.pdf bcal_fibers_spec cp Makefile bcal_fibers_spec tar cvf bcal_fibers_spec.tar bcal_fibers_spec gzip bcal_fibers_spec.tar # rm -rf bcal_fibers_spec %.ps : %.dvi %.tex Makefile dvips -t letter -o $*.ps $* dvipdf $*.dvi $*.pdf # pdflatex $* %.dvi : %.tex latex $* latex $* %.ps : %.ps.gz gunzip -l $*.ps.gz rm -f $*.ps gunzip -c $*.ps.gz > $*.ps %.eps : %.eps.gz gunzip -l $*.eps.gz rm -f $*.eps gunzip -c $*.eps.gz > $*.eps # # % : %.dvi # 'rm' -rf $* # latex2html $* # produce html pages clean: rm -f bcal_fibers_spec.dvi bcal_fibers_spec.ps