-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
49 lines (30 loc) · 1.07 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
ZOLA_CONTENT_DIR := content
ZOLA_STATIC_DIR := static
GPG_KEYID := 50fec3a364b59bee734d0e9b56a3789ced4d2dd7
# Generated at https://keyoxide.org/util/wkd. Z-Base-32 encoded SHA1 of "[email protected]" (Primary key UID)
KEYOXIDE_WKD_HANDLE := sjd3shepa5rmabd9ggran4dsd5fd4sec
ZOLA_BIN ?= zola
GPG_BIN ?= gpg
# Main targets
build: zola-build
serve: zola-serve
dist: update-submodules update-pubkey depends
zola-build:
$(ZOLA_BIN) build -u '/'
zola-serve: dist
$(ZOLA_BIN) serve -u '/'
# Depends
depends: copy-fa-fonts copy-reset-css copy-microevent-js
.PHONY: depends
copy-reset-css:
cp depends/the-new-css-reset/css/reset.css sass/media/css/reset.css
copy-fa-fonts:
cp depends/FontAwesome-subset/fonts/* static/media/fonts/fa/
copy-microevent-js:
cp depends/microevent.js/microevent.js static/media/js/microevent.js
# Tools
update-submodules:
git submodule update --recursive --init
update-pubkey:
$(GPG_BIN) --export $(GPG_KEYID) > $(ZOLA_CONTENT_DIR)/.well-known/openpgpkey/hu/$(KEYOXIDE_WKD_HANDLE)
$(GPG_BIN) --export --armor $(GPG_KEYID) > $(ZOLA_STATIC_DIR)/pubkey.txt