# # 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 # sipm_guides - Elton Smith 02/24/10 # # TEX_FILES_0 = sipm_guides TEX_FILES = $(addsuffix .tex,$(TEX_FILES_0)) # add .tex suffix PS_FILES_0 = draw_trigs_24_gap cladding_transmission PS_FILES = $(addsuffix .ps,$(PS_FILES_0)) # add .ps suffix EPS_FILES_0 = bcal_guides_sipm gap_efficiency \ plot_guide_L8cm_S12mm_10gap_lucite_1 \ plot_guide_L8cm_S12mm_05gap_1 plot_guide_L8cm_S12mm_05gap2_1 \ plot_guide_L8cm_S12mm_10gap_lucite_2 plot_guide_L8cm_S12mm_05gap_2 plot_guide_L8cm_S12mm_05gap2_2 \ plot_guide_L8cm_S12mm_10gap_lucite_4 plot_guide_L8cm_S12mm_05gap_4 plot_guide_L8cm_S12mm_05gap2_4 \ plot_guide_L8cm_S12mm_10gap_lucite_7 plot_guide_L8cm_S12mm_05gap_7 plot_guide_L8cm_S12mm_05gap2_7 \ plot_guide_L8cm_S12mm_10gap_lucite_8 plot_guide_L8cm_S12mm_05gap_8 plot_guide_L8cm_S12mm_05gap2_8 \ plot_guide_L8cm_S12mm_10gap_lucite_11 plot_guide_L8cm_S12mm_05gap_11 plot_guide_L8cm_S12mm_05gap2_11 EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix PDF_FILES_0 = plot_guide_L8cm_S12mm_01gap plot_guide_L8cm_S12mm_05gap1_05gap2 PDF_FILES = $(addsuffix .pdf,$(PDF_FILES_0)) # add .pdf suffix all : sipm_guides.ps sipm_guides.dvi : $(TEX_FILES) Makefile sipm_guides.bbl $(PS_FILES) \ $(EPS_FILES) # make the dvi file latex sipm_guides latex sipm_guides sipm_guides.bbl : sipm_guides.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) latex sipm_guides bibtex sipm_guides tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f sipm_guides.tar rm -f sipm_guides.tar.gz rm -rf sipm_guides mkdir sipm_guides cp sipm_guides.ps sipm_guides cp sipm_guides.bib sipm_guides cp $(TEX_FILES) sipm_guides cp $(EPS_FILES) sipm_guides # cp $(PS_FILES) sipm_guides cp $(PDF_FILES) sipm_guides cp gap_efficiency.C sipm_guides cp sipm_guides.pdf sipm_guides cp Makefile sipm_guides tar cvf sipm_guides.tar sipm_guides gzip sipm_guides.tar # rm -rf sipm_guides %.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 sipm_guides.dvi sipm_guides.ps