diff --git a/Makefile b/Makefile index b64cb8030..910d3a210 100644 --- a/Makefile +++ b/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