Index: lib/Comms/Comms.pro =================================================================== diff -u -refc0e8ccb0ee99f25834eb5a19dee1cf2e50c532 -r4dccc470aedf6f68a0ad73c1101f8a96188cbdb1 --- lib/Comms/Comms.pro (.../Comms.pro) (revision efc0e8ccb0ee99f25834eb5a19dee1cf2e50c532) +++ lib/Comms/Comms.pro (.../Comms.pro) (revision 4dccc470aedf6f68a0ad73c1101f8a96188cbdb1) @@ -39,10 +39,13 @@ INCLUDEPATH += $$PWD/include -# MessageSpool uses the SQLite C API directly (see docs/SDD/AgentMigrationPlan.md -# section 5.5). Requires libsqlite3-dev at build time. LIBS += -lsqlite3 +# qmake only removes the shared objects on distclean. +# The following ensures that they are removed on clean, too. +# It also ensures that all versioned symlinks (*.so.1, *.so.1.0, etc) are removed. +QMAKE_CLEAN += $$DESTDIR/libComms.so* + isEmpty(PREFIX): PREFIX = $$PWD/../../install target.path = $$PREFIX/lib