aboutsummaryrefslogtreecommitdiffstats
path: root/propositions/Makefile
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@fripost.org>2018-05-04 08:42:28 +0200
committerGustav Eek <gustav.eek@fripost.org>2018-05-20 22:16:00 +0200
commitb2e62eec461adf9539e0be803d03c7620e7f1a46 (patch)
tree8b4b828fc06486f617543c464946d09dda68e0a5 /propositions/Makefile
parent7269834cfcdc21846f0e133211ff5eefaa9a6afb (diff)
Annual 2018. Inital on propositions: solidary membership
Diffstat (limited to 'propositions/Makefile')
-rw-r--r--propositions/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/propositions/Makefile b/propositions/Makefile
new file mode 100644
index 0000000..235c5f8
--- /dev/null
+++ b/propositions/Makefile
@@ -0,0 +1,16 @@
+all: \
+propositions-2018.pdf \
+
+propositions-2018.pdf: master.pdf
+ cp $< $@
+
+%.pdf: %.tex ../preamble/preamble.tex
+ latex_count=5 ; \
+ jobname=$(basename $@) ;\
+ pdflatex -jobname="$$jobname" $< ;\
+ while egrep -s 'Rerun (LaTeX|to get cross-references right)' $$jobname.log && [ $$latex_count -gt 0 ] ;\
+ do echo "Rerunning latex...." ; pdflatex $<; latex_count=`expr $$latex_count - 1`; done
+
+clean:
+ rm -fr *.aux *.bbl *.dvi *.log *.nav *.out *.snm *.toc *~
+ rm -fr master.pdf