[Reproducible-commits] [presentations] 02/02: Improve Makefile
Jérémy Bobbio
lunar at moszumanska.debian.org
Sat Aug 8 21:34:53 UTC 2015
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository presentations.
commit 085913b539cde6cb95a98e4837461d37a80ec048
Author: Jérémy Bobbio <lunar at debian.org>
Date: Sat Aug 8 19:37:04 2015 +0200
Improve Makefile
---
2015-08-13-CCCamp15/Makefile | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/2015-08-13-CCCamp15/Makefile b/2015-08-13-CCCamp15/Makefile
index 145cc79..927b131 100644
--- a/2015-08-13-CCCamp15/Makefile
+++ b/2015-08-13-CCCamp15/Makefile
@@ -9,7 +9,21 @@ source: $(PRESENTATION)-src.tar.gz
IMGS = $(shell sed -n -e 's/^[^%]*\\includegraphics\([^{]*\)\?{\([^}]*\)}.*$$/\2/p' $(PRESENTATION).tex | sort -u)
$(PRESENTATION).pdf: $(PRESENTATION).tex $(IMGS)
- lualatex $<
- if grep 'Package rerunfilecheck Warning:' $(PRESENTATION).log; then \
+ set -e && \
+ build=1; \
+ while [ $$build -le 5 ]; do \
+ build=$$(($$build + 1)); \
lualatex $<; \
- fi
+ if sha1sum -c $(PRESENTATION).aux.sha1sum > /dev/null 2>&1; then \
+ break; \
+ fi; \
+ sha1sum $(PRESENTATION).aux > $(PRESENTATION).aux.sha1sum; \
+ done
+
+clean:
+ rm -f $(PRESENTATION).aux $(PRESENTATION).log $(PRESENTATION).nav \
+ $(PRESENTATION).out $(PRESENTATION).snm $(PRESENTATION).toc \
+ $(PRESENTATION).vrb $(PRESENTATION).aux.sha1sum
+
+distclean:
+ rm -f $(PRESENTATION).pdf
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/presentations.git
More information about the Reproducible-commits
mailing list