commit 0af72e5329620518f767e65b692636096e093c51
parent 513687a8cc8db52759fb4b6c68ed655571d961a2
Author: Matt Fehrenbach <m.fehrenbach@pm.me>
Date: Sun, 9 Aug 2020 20:01:51 +0100
Added Makefile
Diffstat:
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/Jenkinsfile b/Jenkinsfile
@@ -4,7 +4,7 @@ pipeline {
stage('Build') {
steps {
echo 'Building..'
- sh 'latexmk -pdf -xelatex -interaction=nonstopmode'
+ sh 'make'
archiveArtifacts(artifacts: '*.pdf', fingerprint: true, onlyIfSuccessful: true)
}
}
diff --git a/Makefile b/Makefile
@@ -0,0 +1,14 @@
+# You want latexmk to *always* run, because make does not have all the info.
+# Also, include non-file targets in .PHONY so they are run regardless of any
+# file of the given name existing.
+.PHONY: resume.pdf all clean
+
+# The first rule in a Makefile is the one executed by default ("make"). It
+# should always be the "all" rule, so that "make" and "make all" are identical.
+all: resume.pdf
+
+resume.pdf:
+ latexmk -pdf -xelatex -interaction=nonstopmode -use-make
+
+clean:
+ latexmk -CA