diff options
author | Lia Lenckowski <lialenck@protonmail.com> | 2023-07-26 21:38:25 +0200 |
---|---|---|
committer | Lia Lenckowski <lialenck@protonmail.com> | 2023-07-26 22:00:11 +0200 |
commit | c62bcf18a6242560c3e92eca38623b6730ac1922 (patch) | |
tree | 169b266d44a4e454f2e3aba9e4cd75d2b2a5f8e8 | |
parent | 377e503555a9b5feb89e15275f26333545a6e414 (diff) | |
download | fastbangs-c62bcf18a6242560c3e92eca38623b6730ac1922.tar fastbangs-c62bcf18a6242560c3e92eca38623b6730ac1922.tar.bz2 fastbangs-c62bcf18a6242560c3e92eca38623b6730ac1922.tar.zst |
make 'make clean' more error-resistant
-rw-r--r-- | makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 $< $@ - |