aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-07-26 17:32:05 +0200
committermetamuffin <metamuffin@disroot.org>2023-07-26 17:32:05 +0200
commitd04c678fb50b9d2fc5ef984ec181a1767b8acf20 (patch)
tree9715ab1166d9e1e8e95fb38f2a4e6317cb8a794b
parentaea8b7ad60a2da26f7306a84399232029e6d1371 (diff)
downloadfastbangs-d04c678fb50b9d2fc5ef984ec181a1767b8acf20.tar
fastbangs-d04c678fb50b9d2fc5ef984ec181a1767b8acf20.tar.bz2
fastbangs-d04c678fb50b9d2fc5ef984ec181a1767b8acf20.tar.zst
also reorder to make deploy the default
-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: