summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..b1eedca
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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