# Makefile for otl2beamer slide presentation projects. # Copyright (C)2010 Adam Monsen # # COPYING # -----------------------------8<----------------------------- # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # ----------------------------->8----------------------------- # # USAGE # -----------------------------8<----------------------------- # Make is required. # Assumed on PATH: otl2beamer.py, pdfopt, pdflatex. # # Create your slides in a plain-text file called "outline.otl" in the current # directory. To build slides and presenter notes, execute "make". # ----------------------------->8----------------------------- SHELL = /bin/bash all: slides.pdf notes.pdf miniclean slides.pdf: raw_slides.pdf pdfopt $< $@ raw_slides.pdf: slides.tex pdflatex $< # must run latex twice to generate TOC or page numbers #pdflatex $< slides.tex: outline.otl otl2beamer.py $< > $@ || $(RM) $@ notes.pdf: raw_notes.pdf pdfopt $< $@ raw_notes.pdf: raw_notes.tex pdflatex $< raw_notes.tex: outline.otl otl2beamer.py --notes $< > $@ || $(RM) $@ clean: miniclean $(RM) *.pdf miniclean: $(RM) *.{aux,log,nav,out,snm,tex,toc,vrb} $(RM) raw_slides.pdf raw_notes.pdf