TARGET=nagios-pres
.PHONY: all
all: /tmp/${TARGET}.pdf

${TARGET}.tex: src/Makefile src/pres.yml src/${TARGET}.erb
	make -C src tex

/tmp/${TARGET}.pdf: ${TARGET}.tex src/pres.yml src/${TARGET}.erb
	pdflatex -output-directory /tmp/ ${TARGET}.tex
	pdflatex -output-directory /tmp/ ${TARGET}.tex

.PHONY: pres
pres: /tmp/${TARGET}.pdf /tmp/${TARGET}.pdf.info
	keyjnote --cache memory -D 1000 /tmp/${TARGET}.pdf

.PHONY: pres1024
pres1024: /tmp/${TARGET}.pdf /tmp/${TARGET}.pdf.info
	keyjnote --cache memory -g 1024x768 -D 1000 /tmp/${TARGET}.pdf

clean:
	rm ${TARGET}.tex
	make -C src clean

/tmp/${TARGET}.pdf.info:${TARGET}.pdf.info
	cp ${TARGET}.pdf.info /tmp/${TARGET}.pdf.info
