# # 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 # smith_plenary_Monday_menu2013 - Elton Smith 10/18/13 -- use pdflatex # HallD_commissionig - Elton Smith 10/23/13 -- use pdflatex # ESAD - Elton Smith 04/04/14 -- use pdflatex # APD_test - Elton Smith 07/16/14 -- use pdflatex # # TEX_FILES_0 = APD_test 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 = figs/APD1 figs/APD1_Slope_vs_T figs/APD654 figs/APD654_Slope_vs_T \ figs/APD655 figs/APD655_Slope_vs_T figs/CompareG_0605004458_AA4655 \ figs/CompareG_AA4654_AA4655 PDF_FILES = $(addsuffix .pdf,$(PDF_FILES_0)) # add .pdf suffix C_FILES_0 = figs/APD65409 figs/APD65509 figs/CompareG_0605004458_AA4655 \ figs/CompareG_AA4654_AA4655 figs/tree_05_19_2014_TEMP_CORR C_FILES = $(addsuffix .C,$(C_FILES_0)) # add .C suffix all : APD_test.pdf APD_test.pdf : $(TEX_FILES) Makefile APD_test.bbl $(PS_FILES) \ $(EPS_FILES) # make the pdf file pdflatex APD_test.tex pdflatex APD_test.tex APD_test.bbl : APD_test.bib $(TEX_FILES) $(PS_FILES) $(EPS_FILES) pdflatex APD_test bibtex APD_test tar : $(TEX_FILES) $(PS_FILES) $(EPS_FILES) # tar files; will remove old tar files rm -f APD_test.tar rm -f APD_test.tar.gz rm -rf APD_test mkdir APD_test # cp APD_test.ps APD_test cp APD_test.bib APD_test cp $(TEX_FILES) APD_test # cp $(EPS_FILES) APD_test # cp $(PS_FILES) APD_test cp $(PDF_FILES) APD_test cp $(C_FILES) APD_test cp 1.dat 654.dat 655.dat APD_test cp 1.sum 654.sum 655.sum APD_test cp Break.txt Vhamamatsu.txt last.txt APD_test cp APD_test.pdf APD_test cp Makefile APD_test tar cvf APD_test.tar APD_test gzip APD_test.tar # rm -rf APD_test %.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 APD_test.dvi APD_test.ps