blob: 8fa8373bdc0b532994564166c1449aaff705b5f2 (
plain) (
blame)
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
|
MAKEFLAGS += --no-builtin-rules --no-builtin-variables --warn-undefined-variables
.DEFAULT_GOAL := all
.DELETE_ON_ERROR:
.SUFFIXES:
SHELL := bash
.SHELLFLAGS := -eu -o pipefail -c
MKDIR := mkdir -p --
RMDIR := $(RM) -r --
name := cv
pdf := $(name)/$(name).pdf
.PHONY: DO
DO:
.PHONY: all
all: $(pdf)
$(pdf): $(name).tex img/selfie_face.jpg | $(name)/
pdflatex -interaction=nonstopmode -halt-on-error -output-directory=$(name)/ $<
%/:
$(MKDIR) $@
.PHONY: clean
clean:
find $(name) '!' -name cv.pdf -type f -delete
.PHONY: clean-all
clean-all:
$(RMDIR) $(name)/
|