-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (40 loc) · 1.93 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
################################################################################
# A series of recipes used to build the example Résumé. #
# #
# Author: Kip (https://github.com/kip93/). #
# Source: https://github.com/kip93/resume/ #
# License: BSD 3-Clause #
# Created: 2020-09-27 #
# Updated: 2021-01-07 #
################################################################################
# This is only intended to be used to build the example for this repo, but might
# prove to be of help to the more curious. This shows how to compile the LaTeX
# file and clean up, as well as how to create preview images.
#
# * To build the example, simply run the command `make` on the project root.
# * To build the example with minimal output, run the command `make silent` (default).
# * To build the example with verbose output, run the command `make verbose`.
# * To build the example without exiting on errors, run the command `make interactive`.
# * To only build the pdf without the PNG preview, run `make pdf`.
# * To clean up the project, run `make clean`.
default: silent
silent: silentpng silentpdf
verbose: verbosepng verbosepdf
interactive: interactivepng interactivepdf
pdf: silentpdf
png: silentpng
silentpng: pdf
pdftoppm example.pdf example -png
silentpdf:
pdflatex -interaction=batchmode example.tex -pdf
verbosepng: verbosepdf
pdftoppm example.pdf example -png
verbosepdf:
pdflatex -halt-on-error example.tex -pdf
interactivepng: interactivepdf
pdftoppm example.pdf example -png
interactivepdf:
pdflatex example.tex -pdf
clean:
rm -rf *.aux *.log *.out *.pdf *.upa *.upb
find -regex '^.+\-[0-9]+\.png' -delete