# # 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 # halld_specs - Elton Smith 08/27/07 # feldman_cousins - Elton Smith 09/17/07 # feldman_cousins systematics - Elton Smith 08/05/08 # cdc_segments - Elton Smith 09/31/08 # sipm_cooling - Elton Smith 09/31/08 # b1pi_studies - Elton Smith 02/24/10 # b1_pi studies - Elton Smith 03/18/10 # gen_eta studies - Elton Smith 04/26/10 # short_currents - Elton Smith 06/22/10 # short_response - Elton Smith 09/24/10 # short_cover - Elton Smith 09/24/10 -- use pdflatex # solenoid_replacement - Elton Smith 10/15/10 -- use pdflatex # # TEX_FILES_0 = solenoid_replacement 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 = EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix PDF_FILES_0 = MagnetDetector Bz_vs_z_beamline dBz_rel_vs_z_20100701_03 \ dBr_rel_vs_z_20100701_03_x2 ssc_cable D000000402-3000_1 D000000402-3000_2 PDF_FILES = $(addsuffix .pdf,$(PDF_FILES_0)) # add .pdf suffix C_FILES_0 = C_FILES = $(addsuffix .C,$(C_FILES_0)) # add .C suffix all : solenoid_replacement.pdf solenoid_replacement.pdf : $(TEX_FILES) Makefile solenoid_replacement.bbl $(PS_FILES) \ $(EPS_FILES) # make the pdf file pdflatex solenoid_replacement.tex pdflatex solenoid_replacement.tex solenoid_replacement.bbl : solenoid_replacement.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) pdflatex solenoid_replacement bibtex solenoid_replacement tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f solenoid_replacement.tar rm -f solenoid_replacement.tar.gz rm -rf solenoid_replacement mkdir solenoid_replacement # cp solenoid_replacement.ps solenoid_replacement cp solenoid_replacement.bib solenoid_replacement cp $(TEX_FILES) solenoid_replacement # cp $(EPS_FILES) solenoid_replacement # cp $(PS_FILES) solenoid_replacement cp $(PDF_FILES) solenoid_replacement # cp $(C_FILES) solenoid_replacement cp solenoid_replacement.pdf solenoid_replacement cp Makefile solenoid_replacement tar cvf solenoid_replacement.tar solenoid_replacement gzip solenoid_replacement.tar # rm -rf solenoid_replacement %.ps : %.dvi dvips -t letter -o $*.ps $* dvipdf $*.dvi $*.pdf %.dvi : %.tex latex $* latex $* %.pdf : %.tex pdflatex $* pdflatex $* %.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 solenoid_replacement.dvi solenoid_replacement.ps