# # 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 # feldman_cousins systematics - Elton Smith 08/05/08 # cdc_segments - Elton Smith 09/31/08 # sipm_cooling - Elton Smith 09/31/08 # b1pi_studies - Elton Smith 02/24/10 # b1_pi studies - Elton Smith 03/18/10 # # TEX_FILES_0 = b1pi_studies 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 =omega_c10_nohadr omega_c0_nohadr omega_c7_nohadr omega_c10_hadr \ omega_c0_hadr omega_c7_hadr b1_pi_c10_nohadr b1_pi_c0_nohadr b1_pi_c7_nohadr \ b1_pi_c10_hadr b1_pi_c0_hadr b1_pi_c7_hadr plot_resolutions_c4 omega_c10_0750 \ omega_c7_0750 plot_resolutions_c2 plot_resolutions_c1 plot_resolutions_c5 EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix PDF_FILES_0 = b1_pi_summary b1_pi_summary_hadr omega_summary omega_summary_hadr PDF_FILES = $(addsuffix .pdf,$(PDF_FILES_0)) # add .pdf suffix C_FILES_0 = b1_pi omega plot_resolutions C_FILES = $(addsuffix .C,$(C_FILES_0)) # add .C suffix all : b1pi_studies.ps b1pi_studies.dvi : $(TEX_FILES) Makefile b1pi_studies.bbl $(PS_FILES) \ $(EPS_FILES) # make the dvi file latex b1pi_studies latex b1pi_studies b1pi_studies.bbl : b1pi_studies.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) latex b1pi_studies bibtex b1pi_studies tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f b1pi_studies.tar rm -f b1pi_studies.tar.gz rm -rf b1pi_studies mkdir b1pi_studies cp b1pi_studies.ps b1pi_studies cp b1pi_studies.bib b1pi_studies cp $(TEX_FILES) b1pi_studies cp $(EPS_FILES) b1pi_studies # cp $(PS_FILES) b1pi_studies cp $(PDF_FILES) b1pi_studies cp $(C_FILES) b1pi_studies cp b1pi_studies.pdf b1pi_studies cp Makefile b1pi_studies tar cvf b1pi_studies.tar b1pi_studies gzip b1pi_studies.tar # rm -rf b1pi_studies %.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 b1pi_studies.dvi b1pi_studies.ps