-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 891 Bytes
/
Makefile
File metadata and controls
37 lines (28 loc) · 891 Bytes
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
all: hugo static
hugo: static FRC
hugo --gc --minify
open: FRC
hugo server --openBrowser --buildDrafts --minify
clean: FRC
rm -f static/avatar.png static/favicon.png static/favicon.ico
# rm -f static/doc/resume.pdf
static: static/avatar.png
static/avatar.png: FRC
curl -Lfs --remote-time --time-cond $@ -o $@ \
"https://www.gravatar.com/avatar/a187e38560bb56f5231cd19e45ad80f6?s=512"
static: static/favicon.png
static/favicon.png: static/avatar.png
magick $< -interpolative-resize 32x32 $@
optipng -o7 $@
static: static/favicon.ico
static/favicon.ico: static/favicon.png
magick $< $@
#static: static/doc/resume.pdf
#static/doc/resume.pdf: FRC
# mkdir -p static/doc
# make -C ~/doc/resume
# cp ~/doc/resume/resume.pdf static/doc/resume.pdf
install: FRC deploy
deploy: FRC hugo
rclone sync --update --progress --check-first --checksum public/ fastmail:www/somas.is/
FRC: