# # 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 # feldman_cousins NIM - Elton Smith 10/25/08 # panic08 proceedings - Elton Smith 1/13/09 # # TEX_FILES_0 = panic08 TEX_FILES = $(addsuffix .tex,$(TEX_FILES_0)) # add .tex suffix PS_FILES_0 = hddetector_platform Photon_beam_layout \ ang_distr dvcs_fdia2 PS_FILES = $(addsuffix .ps,$(PS_FILES_0)) # add .ps suffix EPS_FILES_0 = CEBAF12GeVUpgrOverlay2 CD3_CLAS12 \ ch11_blindpwa dvcs_hel_11p5_qsqr5p4_x0p35_t0p3n EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix all : panic08.ps panic08.dvi : $(TEX_FILES) Makefile panic08.bbl $(PS_FILES) \ $(EPS_FILES) # make the dvi file latex panic08 latex panic08 panic08.bbl : panic08.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) latex panic08 bibtex panic08 tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f panic08.tar rm -f panic08.tar.gz rm -rf panic08 mkdir panic08 # cp panic08.ps panic08 # cp panic08.bib panic08 cp panic08.bbl panic08 cp $(TEX_FILES) panic08 cp $(PS_FILES) panic08 cp $(EPS_FILES) panic08 cp elsart.cls panic08 cp elsart1p.cls panic08 cp panic08.pdf panic08 # cp Makefile panic08 tar cvf panic08.tar panic08 gzip panic08.tar # rm -rf panic08 %.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 panic08.dvi panic08.ps