# # 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 # momres_cdc - Elton Smith 01/29/07 # # TEX_FILES_0 = momres_cdc TEX_FILES = $(addsuffix .tex,$(TEX_FILES_0)) # add .tex suffix PS_FILES_0 = momres_m0.140_nost momres_m0.140_nominal_mat\ momres_m0.140_26layers_mat \ momres_m0.140_nominal momres_m0.938_nominal momres_m0.140_300m sig_cdc\ momres_m0.140_nost_mat momres_m0.140_minimal_mat momres_m0.140_minimal plot_resolutions PS_FILES = $(addsuffix .ps,$(PS_FILES_0)) # add .ps suffix EPS_FILES_0 = resolution_vs_p_theta90pion resolution_vs_p_theta90proton EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix all : momres_cdc.ps momres_cdc.dvi : $(TEX_FILES) Makefile momres_cdc.bbl $(PS_FILES) \ $(EPS_FILES) # make the dvi file latex momres_cdc latex momres_cdc momres_cdc.bbl : momres_cdc.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) latex momres_cdc bibtex momres_cdc tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f momres_cdc.tar rm -f momres_cdc.tar.gz rm -rf momres_cdc mkdir momres_cdc cp momres_cdc.ps momres_cdc cp momres_cdc.bib momres_cdc # cp momres_cdc.bbl momres_cdc cp momres_cdc.tex momres_cdc cp angle_cdc.kumac momres_cdc cp sig_cdc.kumac momres_cdc cp window.kumac momres_cdc cp $(PS_FILES) momres_cdc cp $(EPS_FILES) momres_cdc cp momres_cdc.pdf momres_cdc cp Makefile momres_cdc tar cvf momres_cdc.tar momres_cdc gzip momres_cdc.tar # rm -rf momres_cdc %.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 momres_cdc.dvi momres_cdc.ps