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 ; \
|
utils/makehelp.pl Makefile ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
.PHONY: clean%
|
.PHONY: clean
|
||||||
# HELP: remove all compilation results in the directory but leave containers and images unharmed
|
# HELP: remove all compilation results in the directory but leave containers and images unharmed
|
||||||
clean:
|
clean:
|
||||||
rm -rf node_modules .npm .cache assets/icons assets/favicons static well-known
|
-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 .stack-work .stack-work-build .stack-work-run .stack-work-test .stack-work-doc || :
|
||||||
rm -rf bin/ .Dockerfile develop/
|
-rm -rf bin .Dockerfile develop || :
|
||||||
|
.PHONY: clean-all
|
||||||
# HELP: like clean but with container and image prune
|
# HELP: like clean but with container and image prune
|
||||||
clean-all: clean
|
clean-all:
|
||||||
rm -rf .stack
|
$(MAKE) clean
|
||||||
$(CONTAINER_COMMAND) system prune --all --force --volumes
|
-rm -rf .stack || :
|
||||||
$(CONTAINER_COMMAND) image prune --all --force
|
-$(CONTAINER_COMMAND) system prune --all --force --volumes
|
||||||
$(CONTAINER_COMMAND) volume prune --force
|
-$(CONTAINER_COMMAND) image prune --all --force
|
||||||
|
-$(CONTAINER_COMMAND) volume prune --force
|
||||||
|
|
||||||
.PHONY: release
|
.PHONY: release
|
||||||
# HELP: create, commit and push a new release
|
# HELP: create, commit and push a new release
|
||||||
|
|||||||
Reference in New Issue
Block a user