summaryrefslogtreecommitdiff
path: root/Makefile
blob: 2491e29f645fe87aad27145ed38848b51b464fec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: all posts themes copy clean

all: copy

posts:
	mkdir -p ./public/posts
	emacs -Q --script publish.el

themes/builddir:
	meson setup themes themes/builddir --cross-file themes/emscripten.ini

themes: themes/builddir
	meson compile -C themes/builddir

copy: posts themes
	mkdir -p ./public/themes/dist
	rsync -a themes/dist/ ./public/themes/dist/
	mkdir -p ./public/themes/src/_shaders
	rsync -a themes/src/_shaders/ ./public/themes/src/_shaders/

clean:
	rm -rf public/themes