# # 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 # DeltaT_sys - Elton Smith 7/24/09 # # TEX_FILES_0 = DeltaT_sys TEX_FILES = $(addsuffix .tex,$(TEX_FILES_0)) # add .tex suffix PS_FILES_0 = PS_FILES = $(addsuffix .ps,$(PS_FILES_0)) # add .ps suffix EPS_FILES_0 = Shower_profile_ndim3 Shower_profile_ndim4 \ Shower_profile_ndim5 Shower_profile_ndim6 \ Shower_profile_ndim7 Shower_profile_ndim10 \ DeltaT_sys_Nmin0_b0 DeltaT_sys_Nmin0_b1 \ DeltaT_sys_Nmin100_b0 DeltaT_sys_Nmin100_b1 EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix all : DeltaT_sys.ps DeltaT_sys.dvi : $(TEX_FILES) Makefile DeltaT_sys.bbl $(PS_FILES) \ $(EPS_FILES) # make the dvi file latex DeltaT_sys latex DeltaT_sys DeltaT_sys.bbl : DeltaT_sys.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) latex DeltaT_sys bibtex DeltaT_sys tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f DeltaT_sys.tar rm -f DeltaT_sys.tar.gz rm -rf DeltaT_sys mkdir DeltaT_sys cp DeltaT_sys.ps DeltaT_sys cp DeltaT_sys.bib DeltaT_sys # cp DeltaT_sys.bbl DeltaT_sys cp DeltaT_sys.tex DeltaT_sys cp $(EPS_FILES) DeltaT_sys # cp $(PS_FILES) DeltaT_sys cp DeltaT_sys.pdf DeltaT_sys cp Makefile DeltaT_sys tar cvf DeltaT_sys.tar DeltaT_sys gzip DeltaT_sys.tar # rm -rf DeltaT_sys %.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 DeltaT_sys.dvi DeltaT_sys.ps