# Automatically build the slides on the reproducible paper # # Copyright (C) 2018-2019 Mohammad Akhlaghi # # This Makefile 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 Makefile 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 Makefile. If not, see . # PDF slides: reproducible-paper.pdf: reproducible-paper.tex tex/*.tex # We'll run pdflatex two times so the page numbers and # internal links also work. if [ -d .git ]; then v=$$(git describe --dirty --always --long); \ else v=NO-GIT; fi; \ echo "\newcommand{\gitcommit}{$$v}" > git-commit.tex pdflatex reproducible-paper # pdflatex reproducible-paper # Clean all extra files .PHONY: clean-latex clean clean-latex: rm -f *.aux *.log *.nav *.out *.snm *.toc git-commit.tex clean: clean-latex rm *.pdf