# # 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 # bfield - Elton Smith 11/06/07 # bfield2 - Elton Smith 04/18/08 # # TEX_FILES_0 = bfield2 TEX_FILES = $(addsuffix .tex,$(TEX_FILES_0)) # add .tex suffix PS_FILES_0 = PS_FILES = $(addsuffix .ps,$(PS_FILES_0)) # add .ps suffix EPS_FILES_0 = plot_bfield2_mech_Bgt0.016 plot_bfield2_mech_Bgt0.08 \ plot_bfield2_mech_Bgt0.8 plot_bfield2_tot_mech_Bgt0.016 \ plot_bfield2_tot_mech_Bgt0.08 plot_bfield2_tot_mech_Bgt0.8 EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix all : bfield2.ps bfield2.dvi : $(TEX_FILES) Makefile bfield2.bbl $(PS_FILES) \ $(EPS_FILES) # make the dvi file latex bfield2 latex bfield2 bfield2.bbl : bfield2.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) latex bfield2 bibtex bfield2 tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f bfield2.tar rm -f bfield2.tar.gz rm -rf bfield2 mkdir bfield2 cp bfield2.ps bfield2 cp bfield2.bib bfield2 # cp bfield2.bbl bfield2 cp bfield2.tex bfield2 cp plot_bfield2.C bfield2 cp $(EPS_FILES) bfield2 # cp $(PS_FILES) bfield2 cp bfield2.pdf bfield2 cp Makefile bfield2 tar cvf bfield2.tar bfield2 gzip bfield2.tar # rm -rf bfield2 %.ps : %.dvi dvips -t letter -o $*.ps $* dvipdf $*.dvi $*.pdf %.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 bfield2.dvi bfield2.ps