# # 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 # gen_eta studies - Elton Smith 04/26/10 # # TEX_FILES_0 = gen_eta 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 = genr8_read_eta_c10_11 genr8_read_eta_c1_11 genr8_read_eta_c2_11 genr8_read_eta_c3_11 \ genr8_read_eta_c4_11 genr8_read_eta_c5_11 genr8_read_eta_c6_11 genr8_read_eta_c7_11 \ genr8_read_eta_c8_11 genr8_read_eta_c9_11 genr8_read_eta_c11_mixed_11 genr8_read_eta_c11_mixed_cut_11 EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix PDF_FILES_0 = genr8_read_eta_Pb_01_01 genr8_read_eta_Pb_01_01_Eb-4 genr8_read_eta_Pb_01_01_L3 \ genr8_read_eta_Pb_05_05 genr8_read_eta_Pb_05_05_L3 genr8_read_eta_Pb_10_10 \ genr8_read_eta_Pb_10_10_L3 genr8_read_eta_Pb_12_10 genr8_read_eta_Shashlyk_55x55 \ genr8_read_eta_Shashlyk_110x110 genr8_read_eta_PbWO4_205x205 genr8_read_eta_mixed PDF_FILES = $(addsuffix .pdf,$(PDF_FILES_0)) # add .pdf suffix C_FILES_0 = genr8_tree_eta genr8_mix_eta genr8_read_eta C_FILES = $(addsuffix .C,$(C_FILES_0)) # add .C suffix all : gen_eta.ps gen_eta.dvi : $(TEX_FILES) Makefile gen_eta.bbl $(PS_FILES) \ $(EPS_FILES) # make the dvi file latex gen_eta latex gen_eta gen_eta.bbl : gen_eta.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) latex gen_eta bibtex gen_eta tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f gen_eta.tar rm -f gen_eta.tar.gz rm -rf gen_eta mkdir gen_eta cp gen_eta.ps gen_eta cp gen_eta.bib gen_eta cp $(TEX_FILES) gen_eta cp $(EPS_FILES) gen_eta # cp $(PS_FILES) gen_eta # cp $(PDF_FILES) gen_eta cp $(C_FILES) gen_eta cp gen_eta.pdf gen_eta cp Makefile gen_eta tar cvf gen_eta.tar gen_eta gzip gen_eta.tar # rm -rf gen_eta %.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 gen_eta.dvi gen_eta.ps