From c62bcf18a6242560c3e92eca38623b6730ac1922 Mon Sep 17 00:00:00 2001 From: Lia Lenckowski Date: Wed, 26 Jul 2023 21:38:25 +0200 Subject: make 'make clean' more error-resistant --- makefile | 9 +++++---- 1 file 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 $< $@ - -- cgit v1.2.3-70-g09d2