diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e1a0665..1f84c0f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -83,7 +83,7 @@ build-node: variables: GIT_SUBMODULE_STRATEGY: recursive script: - - make bundle test + - make clean-target bundle test - make run-rules artifacts: diff --git a/Makefile b/Makefile index 9b96174..aebef2c 100755 --- a/Makefile +++ b/Makefile @@ -44,8 +44,13 @@ export RUNNER_VERSION := $(CI_RUNNER_VERSION) all: build -clean: ## clean up the target directory +clean: ## clean up everything added by the default target +clean: clean-deps clean-target + +clean-deps: ## clean up the node_modules directory rm -rf node_modules + +clean-target: ## clean up the target directory rm -rf $(TARGET_PATH) configure: ## create the target directory and other files not in git