[Makefile] Update `make clean` target.
@@ -165,7 +165,14 @@ init-runtime-requirements:
############
# Files and directories generated by python disttools.
-DISTTOOLS_OUTS := dist build compiler_gym.egg-info
+DISTTOOLS_OUTS := \
+ build \
+ compiler_gym.egg-info \
+ dist \
+ examples/build \
+ examples/compiler_gym_examples.egg-info \
+ examples/dist \
+ $(NULL)
BUILD_TARGET ?= //:package
@@ -374,8 +381,9 @@ COMPILER_GYM_DATA_FILE_LOCATIONS = \
.PHONY: clean distclean uninstall purge
clean:
- $(MAKE) -C docs clean || true
rm -rf $(GENERATED_DOCS) $(DISTTOOLS_OUTS)
+ find . -type d -name __pycache__ -o -name .benchmarks -print0 | xargs -0 -I {} /bin/rm -rf "{}"
+ find . -type f -name '.coverage*' -delete
distclean: clean
bazel clean --expunge
