-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (27 loc) · 1.16 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
all: clean build
clean:
git clean -X -q -f
build:
$(MAKE) flair
latexmk -pdf -outdir=_build resume.tex
mv _build/resume.pdf _build/nate-wilkins_resume.pdf
$(MAKE) preview
flair:
wget -O so-flair.png 'https://stackoverflow.com/users/flair/422312.png?theme=clean'
preview:
convert -density 300 _build/nate-wilkins_resume.pdf -quality 90 -resize "50%" -background white -alpha remove _build/nate-wilkins_resume.png
help:
@echo 'Makefile build automation '
@echo ' '
@echo 'Usage '
@echo ' make all clean, build '
@echo ' make clean clean out temporary files '
@echo ' make build compiles LaTeX '
@echo ' make flair retrieve latest flair '
@echo ' make preview generate a image preview '
@echo ' make help displays this help text '
@echo ' '
@echo 'DEFAULT: '
@echo ' make all '
@echo ' '
.PHONY: all clean build flair preview help