From 92cc9a9213822ced0d34fc4b23b359a43ba92828 Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Tue, 27 Aug 2019 11:02:15 -0400 Subject: [PATCH] Create separate Make target for cleaning API-related artifacts My workflow for running tests is now: ``` $ docker exec -ti tools_awx_1 make clean-api awx-link test ``` --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 981dea2484..bc621224fa 100644 --- a/Makefile +++ b/Makefile @@ -100,20 +100,22 @@ clean-languages: find . -type f -regex ".*\.mo$$" -delete # Remove temporary build files, compiled Python files. -clean: clean-ui clean-dist +clean: clean-ui clean-api clean-dist rm -rf awx/public rm -rf awx/lib/site-packages rm -rf awx/job_status rm -rf awx/job_output rm -rf reports - rm -f awx/awx_test.sqlite3* - rm -rf requirements/vendor rm -rf tmp rm -rf $(I18N_FLAG_FILE) mkdir tmp + +clean-api: rm -rf build $(NAME)-$(VERSION) *.egg-info find . -type f -regex ".*\.py[co]$$" -delete find . -type d -name "__pycache__" -delete + rm -f awx/awx_test.sqlite3* + rm -rf requirements/vendor # convenience target to assert environment variables are defined guard-%: