## -*- mode: makefile; coding: utf-8 -*-
##
## Makefile
##
## Copyright (C) 2006,2007 Elmar Hoffmann
##

NAME = overlayinunderlay overlayinunderlay_slides


USE_PDFLATEX =	YES
PDFLATEX_ENV +=	TEXINPUTS=beamerthemedsgroup:images:


CLEAN_FILES +=	$(addsuffix .nav,$(NAME)) $(addsuffix .snm,$(NAME)) \
		$(addsuffix .vrb,$(NAME))


OTHER = \
	images/virtualring.tex \
	images/physicaltopology.tex \
	images/internalexternalrings.tex \
	images/hierarchy.tex \
	images/uphierarchy.tex \
	images/multihoming.tex \
	images/multihominguphierarchy.tex

overlayinunderlay_OTHER += \
	acm_proc_article-sp.cls \
	images/neighbourstate.tex \
	images/peering.tex \
	images/peeringvirtualas.tex

overlayinunderlay_slides_GNUPLOT += \
	images/bgp-active.gnuplot
overlayinunderlay_slides_OTHER += \
	beamerthemedsgroup/beamerthemedsgroup.sty \
	$(overlayinunderlay_slides_GNUPLOT:.gnuplot=.pdf)
CLEAN_FILES += \
        $(overlayinunderlay_slides_GNUPLOT:.gnuplot=.ps) \
        $(overlayinunderlay_slides_GNUPLOT:.gnuplot=.pdf)
EXTRA_DIST += \
        $(overlayinunderlay_slides_GNUPLOT) \
        $(overlayinunderlay_slides_GNUPLOT:.gnuplot=.txt)

EXTRA_DIST +=	overlayinunderlay_slides.pdf.info

include /usr/share/latex-mk/latex.gmk

##
## custom rules
##

EPSTOPDF = epstopdf
GNUPLOT = gnuplot

.SUFFIXES: .ps .pdf

.ps.pdf:
	$(EPSTOPDF) --outfile=$@ $<

.SUFFIXES: .gnuplot .ps

.gnuplot.ps:
	$(GNUPLOT) $< > $@
