Don't try to uninstall the shared libraries unless the directory exists.

Otherwise it fails on OpenBSD during the first installation with:

    ldconfig: /usr/local/sw/versions/voc/git/lib: No such file or directory
This commit is contained in:
T. Kurt Bond 2025-01-17 08:10:47 -05:00
parent 8d2d479664
commit 7d14452a51

View file

@ -189,8 +189,8 @@ installable:
uninstall: installable
@printf '\nUninstalling from \"$(INSTALLDIR)\"\n'
@[ -d "$(INSTALLDIR)/lib" ] && sh src/tools/make/addlibrary.sh uninstall "$(INSTALLDIR)/lib" $(ONAME) || echo nolibdir, skipping
rm -rf "$(INSTALLDIR)"
@sh src/tools/make/addlibrary.sh uninstall "$(INSTALLDIR)/lib" $(ONAME)
# install: Use only after a successful full build. Installs the compiler