-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (32 loc) · 909 Bytes
/
Makefile
File metadata and controls
45 lines (32 loc) · 909 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
38
39
40
41
42
43
44
45
HERE = $(shell pwd)
build: assets
cabal run . -- build
rebuild: assets
cabal run . -- rebuild
watch: assets
cabal run . -- watch
clean-site:
cabal run . -- clean
clean-fonts:
make -C fonts/EB-Garamond clean
make -C fonts/EB-Garamond-Initials clean
#clean-logo:
# rm assets/logo.svg
clean-assets: clean-fonts clean-logo
clean: clean-site clean-assets
push: build
rsync -r _site/ twey.co.uk:www.io/
fonts:
make -C fonts/EB-Garamond WEB=../../assets/fonts/eb-garamond webfonts
make -C fonts/EB-Garamond-Initials WEB=../../assets/fonts/eb-garamond webfonts
# This no longer works with recent ImageMagick
# logo:
# convert \
# -pointsize 144 \
# -font fonts/EuphoriaScript/EuphoriaScript-Regular.otf \
# -rotate 180 \
# -trim \
# label:'&' \
# assets/logo.svg
assets: fonts
.PHONY: build rebuild watch clean-site clean-fonts clean-logo clean-assets clean push fonts assets