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
```
This commit is contained in:
Shane McDonald 2019-08-27 11:02:15 -04:00
parent b9c675e3a2
commit 92cc9a9213
No known key found for this signature in database
GPG Key ID: 6F374AF6E9EB9374

View File

@ -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-%: