forked from defenseunicorns/leapfrogai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmk-clean.mk
31 lines (24 loc) · 832 Bytes
/
mk-clean.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
clean-all: clean-artifacts clean-cache clean-env clean-logs clean-models
clean-artifacts: # Zarf packages, UDS bundles, Python build artifacts, etc.
-rm zarf-package-*.tar.zst
-rm packages/**/zarf-package-*.tar.zst
-rm -rf build
-rm -rf src/**/build
-rm -rf packages/**/build
find . -name 'uds-bundle-*-*.tar.zst' -delete
find . -type d -name 'zarf-sbom' -exec rm -rf {} +
find . -name '*.whl' -delete
find . -type d -name '*.egg-info' -exec rm -rf {} +
clean-cache:
-rm -rf ./**/__pycache__ ./**/*/__pycache__ ./**/**/*/__pycache__
-rm -rf ./.ruff_cache ./**/*/.ruff_cache ./**/.ruff_cache
-rm -rf ./.pytest_cache ./**/.pytest_cache ./**/*/.pytest_cache
-rm -rf ./.mypy_cache
clean-env:
rm -f .env
rm -f .env.email
rm -f .env.password
clean-logs:
-rm -rf ./.logs
clean-models:
-rm -rf ./packages/**/.model