# # 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 # # TEX_FILES_0 = fm_guides TEX_FILES = $(addsuffix .tex,$(TEX_FILES_0)) # add .tex suffix PS_FILES_0 = fm_pmt exit_13 exit_3 \ exit_theta_3l_upstream exit_theta_13_upstream losses_3l_upstream losses_13_upstream PS_FILES = $(addsuffix .ps,$(PS_FILES_0)) # add .ps suffix EPS_FILES_0 = plot_bfield_upstream plot_bfield_downstream bcal_guides_space_90deg \ bcal_90deg_fm bcal_90deg_fm draw_trigs_13 draw_trigs_3 draw_trigs_rect EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix all : fm_guides.ps fm_guides.dvi : $(TEX_FILES) Makefile fm_guides.bbl $(PS_FILES) \ $(EPS_FILES) # make the dvi file latex fm_guides latex fm_guides fm_guides.bbl : fm_guides.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) latex fm_guides bibtex fm_guides tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f fm_guides.tar rm -f fm_guides.tar.gz rm -rf fm_guides mkdir fm_guides cp fm_guides.ps fm_guides cp fm_guides.bib fm_guides # cp fm_guides.bbl fm_guides cp fm_guides.tex fm_guides cp $(EPS_FILES) fm_guides cp $(PS_FILES) fm_guides cp fm_guides.pdf fm_guides cp Makefile fm_guides tar cvf fm_guides.tar fm_guides gzip fm_guides.tar # rm -rf fm_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 fm_guides.dvi fm_guides.ps