### -*-makefile-*- ### ### Makefile for Wrestlers protocol documents ### ### (c) 2008 Mark Wooding ### ###----- Licensing notice --------------------------------------------------- ### ### 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 2 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, write to the Free Software Foundation, ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ###-------------------------------------------------------------------------- ### Various useful tools. CLEANFILES = *-stamp ## MetaPost MPOST = mpost CLEANFILES += *.[0-9]* *.mps %.mpost-stamp: %.mp $(MPOST) $< for i in $*.[0-9]*; do mv $$i $*-$${i##*.}.mps || exit 1; done echo timestamp >$@ ## LaTeX and frinds CLEANFILES += *.log *.dvi *.ps *.toc *.lot *.lof *.aux *.pdf *.bbl *.blg CLEANFILES += *.out %.pdf: %.ps; ps2pdf $< $@ %.ps: %.dvi; dvips -o $@.new $< && mv $@.new $@ %.dvi: %.dvi-stamp; %.gz: %; gzip -9vc $^ >$@.new && mv $@.new $@ ###-------------------------------------------------------------------------- ### Making the main paper. all:: wrestlers.ps wrestlers.ps.gz wrestlers.pdf wrestlers.dvi-stamp: wrestlers.tex ./build-latex.sh wrestlers bibtex $< \ '\let\iffancystyle\iftrue' all:: wr-llncs.ps wr-llncs.ps.gz wr-llncs.pdf wr-llncs.dvi-stamp: wrestlers.tex ./build-latex.sh wr-llncs bibtex $< \ '\let\iffancystyle\iffalse \let\ifshort\iftrue' ###-------------------------------------------------------------------------- ### Making the slides. all:: wr-slides.pdf-stamp wr-slides.pdf-stamp: wrslides.tex wr-main.tex ./build-latex.sh wr-slides pdf $< \ '\includeonly{wr-main}' ###-------------------------------------------------------------------------- ### Useful stuff. .PHONY: clean clean:; rm -f $(CLEANFILES) ###----- That's all, folks --------------------------------------------------