# A template for LaTeX makefiles....

TARGET=L3

# FIGS is for normal figures (landscape mode) and
# PFIGS is for figures in portrait mode.
FIGS=
PFIGS=

all: dvi ps pdf

$(TARGET).dvi dvi: $(TARGET).tex $(FIGS) $(PFIGS)
	latex $(TARGET).tex

$(TARGET).ps ps: $(TARGET).dvi $(FIGS) $(PFIGS)
	dvips -o $(TARGET).ps $(TARGET).dvi

$(TARGET).pdf pdf: $(TARGET).ps
	ps2pdf $(TARGET).ps $(TARGET).pdf

$(FIGS): %.eps: fig/%.fig
	fig2dev -L ps $< $@

$(PFIGS): %.eps: fig/%.fig
	fig2dev -L -l 0 ps $< $@

clean:
	-rm -f *.dvi *.ps *.log *.aux *.bak *~
