mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-02 05:38:43 +00:00
Add make clean-all
(#3152)
Add make target, witch delete all generated stuff too --------- Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
This commit is contained in:
parent
e3cf7b212c
commit
2e26a526b1
1 changed files with 6 additions and 0 deletions
6
Makefile
6
Makefile
|
@ -103,6 +103,12 @@ clean: ## Clean build artifacts
|
|||
rm -rf build
|
||||
@[ "1" != "$(shell docker image ls woodpecker/make:local -a | wc -l)" ] && docker image rm woodpecker/make:local || echo no docker image to clean
|
||||
|
||||
.PHONY: clean-all
|
||||
clean-all: clean ## Clean all artifacts
|
||||
rm -rf dist web/dist docs/build docs/node_modules web/node_modules
|
||||
# delete generated
|
||||
rm -rf docs/docs/40-cli.md docs/swagger.json
|
||||
|
||||
.PHONY: generate
|
||||
generate: generate-swagger ## Run all code generations
|
||||
go generate ./...
|
||||
|
|
Loading…
Reference in a new issue