diff options
| author | Marin Ivanov <[email protected]> | 2024-08-21 04:00:28 +0300 |
|---|---|---|
| committer | Marin Ivanov <[email protected]> | 2024-08-21 04:00:28 +0300 |
| commit | 2c417fb8398eda685c5dd1f7b1bec811757dc562 (patch) | |
| tree | b2abfbeeaeed5f284629e29d0e991e3d4445e5f2 /Makefile | |
| parent | 8354a7fae28e0bcc7a0eb1b6337f6da0d0769c94 (diff) | |
make build system
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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 |
