# # 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 # gen_pulse - Elton Smith 09/31/08 # gen_pulse - Elton Smith 04/24/09 # SiPM3 - Elton Smith 09/09/11 # # TEX_FILES_0 = SIPMCLASNOTE02 TEX_FILES = $(addsuffix .tex,$(TEX_FILES_0)) # add .tex suffix PS_FILES_0 = SIPMTESTSETUP sipmphotoncount_picture sipm5photoncount_picture \ carbat-0910-3_picture carbat-0910-4_picture carbat-0928-4_picture carbat-0932-4_picture \ sipm3biasdepend nppe2-1090_picture nppe2-1119_picture 1090_picture \ 1119_picture pmttau_picture sipm3final_picture PS_FILES = $(addsuffix .ps,$(PS_FILES_0)) # add .ps suffix EPS_FILES_0 = EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix all : SIPMCLASNOTE02.ps SIPMCLASNOTE02.dvi : $(TEX_FILES) Makefile $(PS_FILES) \ $(EPS_FILES) # make the dvi file latex SIPMCLASNOTE02 latex SIPMCLASNOTE02 SIPMCLASNOTE02.bbl : SIPMCLASNOTE02.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) latex SIPMCLASNOTE02 bibtex SIPMCLASNOTE02 tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f SIPMCLASNOTE02.tar rm -f SIPMCLASNOTE02.tar.gz rm -rf SIPMCLASNOTE02 mkdir SIPMCLASNOTE02 cp SIPMCLASNOTE02.ps SIPMCLASNOTE02 # cp SIPMCLASNOTE02.bib SIPMCLASNOTE02 cp $(TEX_FILES) SIPMCLASNOTE02 # cp $(EPS_FILES) SIPMCLASNOTE02 cp $(PS_FILES) SIPMCLASNOTE02 cp SIPMCLASNOTE02.pdf SIPMCLASNOTE02 cp Makefile SIPMCLASNOTE02 tar cvf SIPMCLASNOTE02.tar SIPMCLASNOTE02 gzip SIPMCLASNOTE02.tar # rm -rf SIPMCLASNOTE02 %.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 SIPMCLASNOTE02.dvi SIPMCLASNOTE02.ps