# # 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 # # TEX_FILES_0 = de_sys TEX_FILES = $(addsuffix .tex,$(TEX_FILES_0)) # add .tex suffix PS_FILES_0 = Ed_2000 PelPer_2000 FireLFireR_2000 FireLFireR_cut_2000 PS_FILES = $(addsuffix .ps,$(PS_FILES_0)) # add .ps suffix EPS_FILES_0 = bcal_guides_sipm2 EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix all : de_sys.ps de_sys.dvi : $(TEX_FILES) Makefile de_sys.bbl $(PS_FILES) \ $(EPS_FILES) # make the dvi file latex de_sys latex de_sys de_sys.bbl : de_sys.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) latex de_sys bibtex de_sys tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f de_sys.tar rm -f de_sys.tar.gz rm -rf de_sys mkdir de_sys cp de_sys.ps de_sys cp de_sys.bib de_sys # cp de_sys.bbl de_sys cp de_sys.tex de_sys cp $(EPS_FILES) de_sys cp $(PS_FILES) de_sys cp de_sys.pdf de_sys cp Makefile de_sys tar cvf de_sys.tar de_sys gzip de_sys.tar # rm -rf de_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 de_sys.dvi de_sys.ps