# $Id: Makefile,v 1.16 2006-01-16 01:11:40 eugene Exp $

DO_PDFLATEX = 1
# remember to set \pdfoutput at the top

DO_BIBTEX = 0
# remember to change from \bibliography to \input{.bbl} at the bottom

help:
	@echo "USAGE: make (target)"
	@echo "  targets:  all calibration"

all: pdf tgz 
pdf: calibration.pdf

journal: calibration.journal.tgz
arxiv: calibration.arxiv.tgz

quick: calibration.quick.pdf

PNGPICS = \
pics/gpc1.layout.pdf \
pics/A1.pdf \
pics/A4.pdf \
pics/photflat.example.v1.png \
pics/rings.v3.example.png \
pics/allsky.photom.v2.png \
pics/photom.pv3.3v4.png \
pics/KHexample.png \
pics/KHmap.png \
pics/DCR.example.png \
pics/astroflat.gri.v2.png \
pics/astroflat.zy.v2.png \
pics/allsky.astrom.pv3.3.png \
pics/astroflat.repair.png \
pics/allsky.histogram.astrom.compare.png \
pics/gaia.photom.v1.png \
pics/gaia.astrom.mean.png \
pics/gaia.astrom.sigma.png

PDFPICS = \
pics/gpc1.layout.pdf \
pics/A1.pdf \
pics/A4.pdf \
pics/photflat.example.v1.pdf \
pics/rings.v3.example.pdf \
pics/allsky.photom.v2.pdf \
pics/photom.pv3.3v4.pdf \
pics/KHexample.pdf \
pics/KHmap.pdf \
pics/DCR.example.pdf \
pics/astroflat.gri.v2.pdf \
pics/astroflat.zy.v2.pdf \
pics/allsky.astrom.pv3.3.pdf \
pics/astroflat.repair.pdf \
pics/allsky.histogram.astrom.compare.pdf \
pics/gaia.photom.v1.pdf \
pics/gaia.astrom.mean.pdf \
pics/gaia.astrom.sigma.pdf

FILES = \
../inputs/astro.sty \
../inputs/code.sty \
../inputs/apj.bst \
calibration.tex

pics/%.pdf : pics/%.ps
	echo $^
	echo $<
	echo $@
	echo $*
	ps2pdf -dEPSCrop $< $@

# pdfpics: $(PDFPICS)

calibration.pdf: $(FILES)

calibration.journal.tgz: $(FILES) $(PDFPICS) calibration.bbl
calibration..arxiv.tgz: $(FILES) $(PNGPICS) calibration.bbl

include ../Makefile.Common

