# # 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 # gen_phithe - Elton Smith 08/28/09 # # TEX_FILES_0 = gen_phithe 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 = gen_phithe_100_100 gen_phithe_100_150 gen_phithe_50_100 \ gen_phithe_100_100_mod plot_c1_signif1 plot_c2_signif1 \ plot_c1_signif2 plot_c2_signif2 plot_c1_signif3 plot_c2_signif3 \ plot_c1_signif4 plot_c2_signif4 EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix all : gen_phithe.ps gen_phithe.dvi : $(TEX_FILES) Makefile gen_phithe.bbl $(PS_FILES) \ $(EPS_FILES) # make the dvi file latex gen_phithe latex gen_phithe gen_phithe.bbl : gen_phithe.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) latex gen_phithe bibtex gen_phithe tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f gen_phithe.tar rm -f gen_phithe.tar.gz rm -rf gen_phithe mkdir gen_phithe cp gen_phithe.ps gen_phithe cp gen_phithe.bib gen_phithe cp $(TEX_FILES) gen_phithe cp $(EPS_FILES) gen_phithe # cp $(PS_FILES) gen_phithe cp plot_signif1.C gen_phithe cp plot_signif2.C gen_phithe cp plot_signif3.C gen_phithe cp plot_signif4.C gen_phithe cp gen_phithe.pdf gen_phithe cp Makefile gen_phithe tar cvf gen_phithe.tar gen_phithe gzip gen_phithe.tar # rm -rf gen_phithe %.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_phithe.dvi gen_phithe.ps