build(Makefile): make cleanup more failure-resistant
This commit is contained in:
parent
1837d73e84
commit
4956c6efe2
20
Makefile
20
Makefile
@ -52,18 +52,20 @@ help:
|
||||
utils/makehelp.pl Makefile ; \
|
||||
fi
|
||||
|
||||
.PHONY: clean%
|
||||
.PHONY: clean
|
||||
# HELP: remove all compilation results in the directory but leave containers and images unharmed
|
||||
clean:
|
||||
rm -rf node_modules .npm .cache assets/icons assets/favicons static well-known
|
||||
rm -rf .stack-work .stack-work-build .stack-work-run .stack-work-test .stack-work-doc
|
||||
rm -rf bin/ .Dockerfile develop/
|
||||
-rm -rf node_modules .npm .cache assets/icons assets/favicons static well-known || :
|
||||
-rm -rf .stack-work .stack-work-build .stack-work-run .stack-work-test .stack-work-doc || :
|
||||
-rm -rf bin .Dockerfile develop || :
|
||||
.PHONY: clean-all
|
||||
# HELP: like clean but with container and image prune
|
||||
clean-all: clean
|
||||
rm -rf .stack
|
||||
$(CONTAINER_COMMAND) system prune --all --force --volumes
|
||||
$(CONTAINER_COMMAND) image prune --all --force
|
||||
$(CONTAINER_COMMAND) volume prune --force
|
||||
clean-all:
|
||||
$(MAKE) clean
|
||||
-rm -rf .stack || :
|
||||
-$(CONTAINER_COMMAND) system prune --all --force --volumes
|
||||
-$(CONTAINER_COMMAND) image prune --all --force
|
||||
-$(CONTAINER_COMMAND) volume prune --force
|
||||
|
||||
.PHONY: release
|
||||
# HELP: create, commit and push a new release
|
||||
|
||||
Reference in New Issue
Block a user