aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorLia Lenckowski <lialenck@protonmail.com>2023-07-26 21:38:25 +0200
committerLia Lenckowski <lialenck@protonmail.com>2023-07-26 22:00:11 +0200
commitc62bcf18a6242560c3e92eca38623b6730ac1922 (patch)
tree169b266d44a4e454f2e3aba9e4cd75d2b2a5f8e8 /makefile
parent377e503555a9b5feb89e15275f26333545a6e414 (diff)
downloadfastbangs-c62bcf18a6242560c3e92eca38623b6730ac1922.tar
fastbangs-c62bcf18a6242560c3e92eca38623b6730ac1922.tar.bz2
fastbangs-c62bcf18a6242560c3e92eca38623b6730ac1922.tar.zst
make 'make clean' more error-resistant
Diffstat (limited to 'makefile')
-rw-r--r--makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/makefile b/makefile
index ea6b296..41a8f26 100644
--- a/makefile
+++ b/makefile
@@ -10,9 +10,11 @@ watch-style:
clean:
stack clean --full
- rm deploy/{bundle.js,index.html,fastbangs}
- rm deploy.zip
- rmdir deploy # this may fail if the server was run, due to the bangs.json being generated
+ rm -f deploy/{bundle.js,index.html,fastbangs}
+ rm -f deploy.zip
+ # This may fail if the server was run, due to bangs.json and banger.db.
+ # This is intentional, as we don't want to delete some users' data
+ rmdir deploy
deploy.zip: deploy-dir
zip deploy.zip -r deploy
@@ -26,4 +28,3 @@ deploy/bundle.js: $(shell find frontend -name '*.ts')
esbuild frontend/main.ts --bundle --outfile=deploy/bundle.js $(ESFLAGS)
deploy/style.css: frontend/style.sass
sassc $< $@
-