summaryrefslogtreecommitdiff
path: root/Makefile
blob: b1eedcabbb6a12ad77994fe3bc51199810df67c3 (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
	npm run build

dev:
	npm run dev

clean:
	rm -rf dist public/themes