# # 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 # light_guides - Elton Smith 1/17/08 # fm_guides - Elton Smith 6/3/09 # de_sys - Elton Smith 6/29/09 # bcalreadout_cover - Elton Smith 7/12/09 # # TEX_FILES_0 = bcalreadout_cover TEX_FILES = $(addsuffix .tex,$(TEX_FILES_0)) # add .tex suffix PS_FILES_0 = Gluex_detector plot_bfield_upstream plot_bfield_downstream SiPM_option FM_option \ SiPM_sum_60MeV SiPM_sum_2000MeV FM_60MeV FM_2000MeV PS_FILES = $(addsuffix .ps,$(PS_FILES_0)) # add .ps suffix EPS_FILES_0 = plot_photons bcal_guides_sipm bcal_90deg_fm2 \ PhotonEfficiency_Jul09 sipm_pulse fm_pulse EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix all : bcalreadout_cover.ps bcalreadout_cover.dvi : $(TEX_FILES) Makefile bcalreadout_cover.bbl $(PS_FILES) \ $(EPS_FILES) # make the dvi file latex bcalreadout_cover latex bcalreadout_cover bcalreadout_cover.bbl : bcalreadout_cover.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) latex bcalreadout_cover bibtex bcalreadout_cover tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f bcalreadout_cover.tar rm -f bcalreadout_cover.tar.gz rm -rf bcalreadout_cover mkdir bcalreadout_cover cp bcalreadout_cover.ps bcalreadout_cover cp bcalreadout_cover.bib bcalreadout_cover # cp bcalreadout_cover.bbl bcalreadout_cover cp bcalreadout_cover.tex bcalreadout_cover cp $(EPS_FILES) bcalreadout_cover cp $(PS_FILES) bcalreadout_cover cp bcalreadout_cover.pdf bcalreadout_cover cp Makefile bcalreadout_cover tar cvf bcalreadout_cover.tar bcalreadout_cover gzip bcalreadout_cover.tar # rm -rf bcalreadout_cover %.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 bcalreadout_cover.dvi bcalreadout_cover.ps