summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarin Ivanov <[email protected]>2024-08-21 04:00:28 +0300
committerMarin Ivanov <[email protected]>2024-08-21 04:00:28 +0300
commit2c417fb8398eda685c5dd1f7b1bec811757dc562 (patch)
treeb2abfbeeaeed5f284629e29d0e991e3d4445e5f2 /Makefile
parent8354a7fae28e0bcc7a0eb1b6337f6da0d0769c94 (diff)
make build system
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index e92fc58..7526c9d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
-all: main.js main.css config.js
+all: main.css main.js
+.PHONY: build
main.js: ka.js app.js
cat $^ | esbuild --minify --loader=js > $@
@@ -6,8 +7,6 @@ main.js: ka.js app.js
main.css: style.css
cat $^ | esbuild --minify --loader=css > $@
-config.js: config.toml
- echo -n "config=" > $@
- python3 ./toml2json.py < $< >> $@
- echo -n ";" >> $@
+build: config.toml main.js main.css
+ python3 ./build.py