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

all: build

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

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

copy-themes: 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/

build: copy-themes
	bun run build

dev:
	bun run dev

clean:
	rm -rf dist public/themes