# # 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 # short_currents - Elton Smith 06/22/10 # short_response - Elton Smith 09/24/10 # short_cover - Elton Smith 09/24/10 -- use pdflatex # solenoid_replacement - Elton Smith 10/15/10 -- use pdflatex # bcal_prod_guides - Elton Smith 06/08/11 -- use pdflatex # bcal_geom_dt - Elton Smith 07/27/11 -- use pdflatex # SiPMarray_timing - Elton Smith 09/20/11 -- use pdflatex # # TEX_FILES_0 = SiPMarray_timing 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 = EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix PDF_FILES_0 = experiment sipm_data_read_pmtsb_c3 sipm_plotHVsetting_c1 TEK00000 \ sipm_plotBiasScan_c1 sipm_data_read_1928b_c3 sipm_data_read_1954b_c3 \ sipm_data_read_1977b_c3 sipm_data_read_1998b_c3 demosipm_picture PDF_FILES = $(addsuffix .pdf,$(PDF_FILES_0)) # add .pdf suffix C_FILES_0 = sipm_data_read sipm_data_read_1954 sipm_data_read_1998 sipm_data_read_303 \ sipm_plotHVsetting sipm_data_read_1928 sipm_data_read_1977 sipm_data_read_302 sipm_plotBiasScan C_FILES = $(addsuffix .C,$(C_FILES_0)) # add .C suffix all : SiPMarray_timing.pdf SiPMarray_timing.pdf : $(TEX_FILES) Makefile SiPMarray_timing.bbl $(PS_FILES) \ $(EPS_FILES) # make the pdf file pdflatex SiPMarray_timing.tex pdflatex SiPMarray_timing.tex SiPMarray_timing.bbl : SiPMarray_timing.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) pdflatex SiPMarray_timing bibtex SiPMarray_timing tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f SiPMarray_timing.tar rm -f SiPMarray_timing.tar.gz rm -rf SiPMarray_timing mkdir SiPMarray_timing # cp SiPMarray_timing.ps SiPMarray_timing cp SiPMarray_timing.bib SiPMarray_timing cp $(TEX_FILES) SiPMarray_timing # cp $(EPS_FILES) SiPMarray_timing # cp $(PS_FILES) SiPMarray_timing cp $(PDF_FILES) SiPMarray_timing cp $(C_FILES) SiPMarray_timing cp SiPMarray_timing.pdf SiPMarray_timing cp Makefile SiPMarray_timing tar cvf SiPMarray_timing.tar SiPMarray_timing gzip SiPMarray_timing.tar # rm -rf SiPMarray_timing %.ps : %.dvi dvips -t letter -o $*.ps $* dvipdf $*.dvi $*.pdf %.dvi : %.tex latex $* latex $* %.pdf : %.tex pdflatex $* pdflatex $* %.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 SiPMarray_timing.dvi SiPMarray_timing.ps