summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 2491e29..b1eedca 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,6 @@
-.PHONY: all posts themes copy clean
+.PHONY: all themes copy-themes build dev clean
-all: copy
-
-posts:
- mkdir -p ./public/posts
- emacs -Q --script publish.el
+all: build
themes/builddir:
meson setup themes themes/builddir --cross-file themes/emscripten.ini
@@ -12,11 +8,17 @@ themes/builddir:
themes: themes/builddir
meson compile -C themes/builddir
-copy: posts themes
+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 public/themes
+ rm -rf dist public/themes