Remove empty base dirs when uninstalling
authorMathieu Baudier <mbaudier@argeo.org>
Wed, 6 Mar 2024 11:15:38 +0000 (12:15 +0100)
committerMathieu Baudier <mbaudier@argeo.org>
Wed, 6 Mar 2024 11:15:38 +0000 (12:15 +0100)
repackage.mk

index e0ed18a57d654ec5bd9a6a1b51515d3b8d29991c..38197cc1e2cfcbe1e943848fcdaccd3ce2ea64d5 100644 (file)
@@ -40,9 +40,8 @@ uninstall:
        )
        @echo Uninstalled arch binaries \'$(ARCH_CATEGORIES)\' to $(A2_NATIVE_INSTALL_TARGET)
        @find $(A2_INSTALL_TARGET) -empty -type d -delete
-       @rmdir --ignore-fail-on-non-empty $(A2_INSTALL_TARGET)
        @find $(A2_NATIVE_INSTALL_TARGET) -empty -type d -delete
-       @rmdir --ignore-fail-on-non-empty $(A2_NATIVE_INSTALL_TARGET)
+
 .SECONDEXPANSION:
 # We use .SECONDEXPANSION and CATEGORIES_TO_REPACKAGE instead of directly CATEGORIES
 # so that we don't repackage a category if it hasn't changed