You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing make uninstall only the files are removed, but the folders are left there, even if they are empty. This leaves the system with a lot of empty folders.
I think this should be changed and the empty folders should be removed. A test should be performed to check whether the folder is empty: if it is empty, it is silently removed; if it is not, a warning should be issued saying "cannot remove folder blah blah blah because it is not empty". This is analogous to what apt does.
Ideally, make install followed by make uninstall should leave the system in the exact same state as it was before
The text was updated successfully, but these errors were encountered:
You're partially right I would say. This indeed annoying to have remaining empty folders left when uninstalling applications. BUT, some applications (e.g. CppAD and CppADCodeGen) use the same installation folder (cppad) for the installation. In other words, we cannot remove some folders when some other applications are still in place.
Normally, the uninstallation of a package is taken in charge by the package manager (such as apt, brew, etc.), which does the job in your back.
@jcarpent exactly. That is why I say make uninstall should check whether the folder is empty. If it is not, clearly it will be left there; but if it is not, I see no reason not to remove it. This is exactly what APT does. In other words, the workflow should be:
Remove installed files one by one
After removing all files from a given folder, check whether said folder is empty
If the folder is empty, remove the folder too
If it is not empty, issue a warning "cannot remove folder"
When doing
make uninstall
only the files are removed, but the folders are left there, even if they are empty. This leaves the system with a lot of empty folders.I think this should be changed and the empty folders should be removed. A test should be performed to check whether the folder is empty: if it is empty, it is silently removed; if it is not, a warning should be issued saying "cannot remove folder blah blah blah because it is not empty". This is analogous to what apt does.
Ideally,
make install
followed bymake uninstall
should leave the system in the exact same state as it was beforeThe text was updated successfully, but these errors were encountered: