X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=GNUmakefile;h=5c0f72501f0c5f25acaa1b8dce1ee9ac4f020bb1;hb=7624ec133ef072fe08b6bcbdeabfa21edee51bfc;hp=83d141da96f1e38741777b5003a17f94b28673d2;hpb=9118aca5f232cc9a4da573a367da31ea8bee2fd5;p=bup.git diff --git a/GNUmakefile b/GNUmakefile index 83d141d..5c0f725 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -285,11 +285,8 @@ import-docs: Documentation/clean clean: Documentation/clean cd config && rm -rf finished bin config.var - cd config && rm -f \ - ${CONFIGURE_DETRITUS} ${CONFIGURE_FILES} ${GENERATED_FILES} - rm -rf $(clean_paths) .pytest_cache - rm -f $(generated_dependencies) - find . -name __pycache__ -exec rm -rf {} + + + # Clean up the mounts first, so that find, etc. won't crash later if test -e test/mnt; then dev/cleanup-mounts-under test/mnt; fi if test -e test/mnt; then rm -r test/mnt; fi if test -e test/tmp; then dev/cleanup-mounts-under test/tmp; fi @@ -297,5 +294,13 @@ clean: Documentation/clean if test -e test/int/testfs; \ then umount test/int/testfs || true; fi rm -rf test/int/testfs test/int/testfs.img testfs.img + + cd config && rm -f \ + ${CONFIGURE_DETRITUS} ${CONFIGURE_FILES} ${GENERATED_FILES} + rm -rf $(clean_paths) .pytest_cache + rm -f $(generated_dependencies) + find . -name __pycache__ -exec rm -rf {} + + # Remove this *.pyc cleanup once we drop py2 + rm -f lib/bup/*.pyc lib/bup/cmd/*.pyc test/__init__.pyc if test -e test/tmp; then dev/force-delete test/tmp; fi dev/configure-sampledata --clean