aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/makefile b/makefile
index 0c22499..0b59ae1 100644
--- a/makefile
+++ b/makefile
@@ -1,5 +1,7 @@
ESFLAGS = --target=esnext --format=esm
+deploy-dir: deploy deploy/bundle.js deploy/style.css deploy/index.html deploy/bangs-ddgless
+
.PHONY: watch clean deploy-dir
watch-script:
esbuild frontend/main.ts --bundle --outfile=deploy/bundle.js $(ESFLAGS) --watch
@@ -12,9 +14,6 @@ clean:
rm deploy.zip
rmdir deploy # this may fail if the server was run, due to the bangs.json being generated
-
-deploy-dir: deploy deploy/bundle.js deploy/style.css deploy/index.html deploy/bangs-ddgless
-
deploy.zip: deploy-dir
zip deploy.zip -r deploy
deploy: