diff options
author | metamuffin <metamuffin@disroot.org> | 2023-11-06 20:22:38 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-11-06 20:30:25 +0100 |
commit | 556bbf51d928b0eb774b81e43b20c78bea191f7f (patch) | |
tree | 012ae5db3d38f7e30857cbfef5a5cb9b15ce4e8a | |
parent | e1616d4ab5b8a4a34faeb058693112ba95bed024 (diff) | |
download | fastbangs-556bbf51d928b0eb774b81e43b20c78bea191f7f.tar fastbangs-556bbf51d928b0eb774b81e43b20c78bea191f7f.tar.bz2 fastbangs-556bbf51d928b0eb774b81e43b20c78bea191f7f.tar.zst |
update watch targets in makefile
-rw-r--r-- | makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -10,17 +10,17 @@ deploy/fastbangs: $(shell find src -name '*.hs') build/bundle.js build/index.htm build/index.html: frontend/index.html cp $< $@ -build/bundle.js: $(shell find frontend -name '*.ts') frontend/fuzzysort.js +build/bundle.js: build-dir $(shell find frontend -name '*.ts') frontend/fuzzysort.js esbuild frontend/main.ts --bundle --outfile=build/bundle.js $(ESFLAGS) -build/style.css: frontend/style.sass +build/style.css: build-dir frontend/style.sass sassc $< $@ frontend/fuzzysort.js: curl -s 'https://cdn.jsdelivr.net/npm/fuzzysort@2.0.4/fuzzysort.min.js' -o $@ -watch-script: frontend/fuzzysort.js +watch-script: deploy-dir frontend/fuzzysort.js esbuild frontend/main.ts --bundle --outfile=deploy/bundle.js $(ESFLAGS) --watch -watch-style: +watch-style: deploy-dir while true; do make deploy/style.css; inotifywait -e modify -e move frontend/style.sass; done deploy.zip: all |