# # 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 # stob - Elton Smith 09/13/09 # # TEX_FILES_0 = stob 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_sigback2_c2_b1100_b240_w0 plot_sigback2_c2_b1100_b240_w1 \ plot_sigback2_c2_b140_b240_w0 plot_sigback2_c2_b140_b240_w1 \ plot_sigback2_c3_b140_b240_w0 plot_sigback2_c3_b140_b240_w1 EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix all : stob.ps stob.dvi : $(TEX_FILES) Makefile stob.bbl $(PS_FILES) \ $(EPS_FILES) # make the dvi file latex stob latex stob stob.bbl : stob.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) latex stob bibtex stob tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f stob.tar rm -f stob.tar.gz rm -rf stob mkdir stob cp stob.bib stob cp $(TEX_FILES) stob cp $(EPS_FILES) stob # cp $(PS_FILES) stob cp plot_sigback2.C stob cp stob.ps stob cp stob.pdf stob cp Makefile stob tar cvf stob.tar stob gzip stob.tar # rm -rf stob %.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 stob.dvi stob.ps