# # 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 # bcal_guides - Elton Smith 6/17/09 # # TEX_FILES_0 = bcal_guides TEX_FILES = $(addsuffix .tex,$(TEX_FILES_0)) # add .tex suffix PS_FILES_0 = refl_inner_12cm_8deg refl_inner10cm_rectangle \ refl_outer12cm refl_inner_52cm_fine PS_FILES = $(addsuffix .ps,$(PS_FILES_0)) # add .ps suffix EPS_FILES_0 = bcal_guides_sipm2x2 bcal_guides_sipm bcal_guides_fm \ plot_bfield_tot_upbcal plot_bfield_tot_dbcal \ bcal_guides_space draw_trigs_inner10cm_rectangle \ draw_trigs_inner12cm_8deg draw_trigs_outer12cm \ draw_trigs_inner12cm_fine draw_trigs_inner52_fine_1.35 EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix all : bcal_guides.ps bcal_guides.dvi : $(TEX_FILES) Makefile bcal_guides.bbl $(PS_FILES) \ $(EPS_FILES) # make the dvi file latex bcal_guides latex bcal_guides bcal_guides.bbl : bcal_guides.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) latex bcal_guides bibtex bcal_guides tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f bcal_guides.tar rm -f bcal_guides.tar.gz rm -rf bcal_guides mkdir bcal_guides cp bcal_guides.ps bcal_guides cp bcal_guides.bib bcal_guides # cp bcal_guides.bbl bcal_guides cp bcal_guides.tex bcal_guides cp $(EPS_FILES) bcal_guides # cp $(PS_FILES) bcal_guides cp bcal_guides.pdf bcal_guides cp Makefile bcal_guides tar cvf bcal_guides.tar bcal_guides gzip bcal_guides.tar # rm -rf bcal_guides %.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 bcal_guides.dvi bcal_guides.ps