# # 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 # genphi - Elton Smith 05/29/09 # # TEX_FILES_0 = genphi 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_c1_2000 genr8_read_c2_2200 genr8_read_c4_1700 \ genr8_read_c1_2100 genr8_read_c3_1600-2200_tcut45 genr8_read_c4_1800-2100_tcut45 \ genr8_read_c1_2200 genr8_read_c3_1700 genr8_read_c4_1800 \ genr8_read_c2_1600-2200_tcut45 genr8_read_c3_1800-2100_tcut45 genr8_read_c4_1900 \ genr8_read_c2_1700 genr8_read_c3_1800 genr8_read_c4_2000 \ genr8_read_c1_1600-2200_tcut45 genr8_read_c2_1800-2100_tcut45 genr8_read_c3_1900 genr8_read_c4_2100 \ genr8_read_c1_1700 genr8_read_c2_1800 genr8_read_c3_2000 genr8_read_c4_2200 \ genr8_read_c1_1800-2100_tcut45 genr8_read_c2_1900 genr8_read_c3_2100 \ genr8_read_c1_1800 genr8_read_c2_2000 genr8_read_c3_2200 \ genr8_read_c1_1900 genr8_read_c2_2100 genr8_read_c4_1600-2200_tcut45 EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix all : genphi.ps genphi.dvi : $(TEX_FILES) Makefile genphi.bbl $(PS_FILES) \ $(EPS_FILES) # make the dvi file latex genphi latex genphi genphi.bbl : genphi.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) latex genphi bibtex genphi tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f genphi.tar rm -f genphi.tar.gz rm -rf genphi mkdir genphi cp genphi.ps genphi cp genphi.bib genphi cp $(TEX_FILES) genphi cp $(EPS_FILES) genphi # cp $(PS_FILES) genphi cp bcal_drpde_tradeoff2.C genphi cp fit_dr.C genphi cp trig_efficiency.C genphi cp genphi.pdf genphi cp Makefile genphi tar cvf genphi.tar genphi gzip genphi.tar # rm -rf genphi %.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 genphi.dvi genphi.ps