# # 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 # bcal_prod_guides - Elton Smith 06/08/11 -- use pdflatex # meson2012 proceedings - Elton Smith 07/20/12 -- use pdflatex # readout_check - Elton Smith 09/14/12 -- use pdflatex # gauss_area - Elton Smith 01/19/13 -- use pdflatex # PionPolarizabilityPAC40 -- use pdflatex # # # TEX_FILES_0 = PionPolarizabilityPAC40 Introduction TheoreticalPredictions PreviousMeasurements \ JLAB_Overview JLAB_Detector JLAB_Backgrounds JLAB_Acceptance \ JLAB_Pi0Normalization JLAB_Sensitivity JLAB_MuonDetector TEX_FILES = $(addsuffix .tex,$(TEX_FILES_0)) # add .tex suffix PS_FILES_0 = PS_FILES = $(addsuffix .ps,$(PS_FILES_0)) # add .ps suffix PNG_FILES_0 = gluex PNG_FILES = $(addsuffix .png,$(PNG_FILES_0)) # add .png suffix EPS_FILES_0 = EPS_FILES = $(addsuffix .eps,$(EPS_FILES_0)) # add .eps suffix PDF_FILES_0 = scattering_angles Wpipi mass t_log phi_pipi cos_theta psi_pipi cross \ figures/MuonDetector 20130103_beam_fom plot_piprob_c1_alpha05.pdf PDF_FILES = $(addsuffix .pdf,$(PDF_FILES_0)) # add .pdf suffix C_FILES_0 = C_FILES = $(addsuffix .C,$(C_FILES_0)) # add .C suffix all : PionPolarizabilityPAC40.pdf PionPolarizabilityPAC40.pdf : $(TEX_FILES) Makefile $(PS_FILES) $(PNG_FILES)\ $(EPS_FILES) # PionPolarizabilityPAC40.bbl # make the pdf file pdflatex PionPolarizabilityPAC40.tex pdflatex PionPolarizabilityPAC40.tex #PionPolarizabilityPAC40.bbl : PionPolarizabilityPAC40.bib $(TEX_FILES) # pdflatex PionPolarizabilityPAC40 # bibtex PionPolarizabilityPAC40 tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f PionPolarizabilityPAC40.tar rm -f PionPolarizabilityPAC40.tar.gz rm -rf PionPolarizabilityPAC40 mkdir PionPolarizabilityPAC40 # cp PionPolarizabilityPAC40.ps PionPolarizabilityPAC40 cp PionPolarizabilityPAC40.bib PionPolarizabilityPAC40 cp $(TEX_FILES) PionPolarizabilityPAC40 # cp $(EPS_FILES) PionPolarizabilityPAC40 # cp $(PS_FILES) PionPolarizabilityPAC40 cp $(PDF_FILES) PionPolarizabilityPAC40 cp $(C_FILES) PionPolarizabilityPAC40 cp PionPolarizabilityPAC40.pdf PionPolarizabilityPAC40 cp Makefile PionPolarizabilityPAC40 tar cvf PionPolarizabilityPAC40.tar PionPolarizabilityPAC40 gzip PionPolarizabilityPAC40.tar # rm -rf PionPolarizabilityPAC40 %.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 PionPolarizabilityPAC40.dvi PionPolarizabilityPAC40.ps