From 30ea7d6fc894665c828278d97ec3ad737bc2a4c9 Mon Sep 17 00:00:00 2001 From: ssube Date: Sun, 30 Jun 2019 19:07:30 -0500 Subject: [PATCH] fix(build): clean up output directory between builds --- .gitlab-ci.yml | 2 +- Makefile | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) 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