# # 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 # # TEX_FILES_0 = cdc_segments 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 = plot_layers_c1_phi0_l6_g0 plot_layers_c1_phi0_l6_g1 \ plot_layers_c1_phi0_l6_g2 plot_goodfits EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix all : cdc_segments.ps cdc_segments.dvi : $(TEX_FILES) Makefile cdc_segments.bbl $(PS_FILES) \ $(EPS_FILES) # make the dvi file latex cdc_segments latex cdc_segments cdc_segments.bbl : cdc_segments.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) latex cdc_segments bibtex cdc_segments tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f cdc_segments.tar rm -f cdc_segments.tar.gz rm -rf cdc_segments mkdir cdc_segments cp cdc_segments.ps cdc_segments cp cdc_segments.bib cdc_segments cp $(TEX_FILES) cdc_segments cp $(EPS_FILES) cdc_segments # cp $(PS_FILES) cdc_segments # cp Limits_invert.C cdc_segments # cp Limits_invert*.root cdc_segments cp cdc_segments.pdf cdc_segments cp Makefile cdc_segments tar cvf cdc_segments.tar cdc_segments gzip cdc_segments.tar # rm -rf cdc_segments %.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 cdc_segments.dvi cdc_segments.ps