forked from NixOS/nixos-summer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (41 loc) · 937 Bytes
/
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
.PHONY: build clean default serve
DEPS = static/style.css static/favicon.ico static/fonts
default: build
static/style.css: $(wildcard less/*.less) $(wildcard less/**/*.less)
lessc \
--verbose \
--math=always \
less/index.less \
$@
static/fonts: $(wildcard less/nixos-common-styles/fonts/*.ttf)
mkdir -p $@
cp less/nixos-common-styles/fonts/*.ttf $@
static/favicon.png: static/images/logo.png
convert \
-resize 16x16 \
-background none \
-gravity center \
-extent 16x16 \
static/images/logo.png \
static/favicon.png
static/favicon.ico: static/favicon.png
convert \
-resize x16 \
-gravity center \
-crop 16x16+0+0 \
-flatten \
-colors 256 \
-background transparent \
static/favicon.png \
static/favicon.ico
build: public
public: ${DEPS}
zola build -u "/"
serve: ${DEPS}
zola serve
clean:
rm -f \
static/favicon.ico \
static/favicon.png \
static/style.css