diff options
author | Ingo Klöcker <[email protected]> | 2024-07-17 10:22:57 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2024-07-18 12:41:32 +0000 |
commit | 899a572b335528aabb769e5832318b0a3e910d08 (patch) | |
tree | c378df11e53c45b8c57ea8f63791de4b53e5c6dd /lang | |
parent | build,qt: Decouple handling of include headers (diff) | |
download | gpgme-899a572b335528aabb769e5832318b0a3e910d08.tar.gz gpgme-899a572b335528aabb769e5832318b0a3e910d08.zip |
build,qt: Remove include directories on uninstall
* lang/qt/src/Makefile.am (uninstall-include-dirs-qt5,
uninstall-include-dirs-qt6): New targets.
(uninstall_include_dirs_qt5, uninstall_include_dirs_qt6): New variables.
(uninstall-local): Replace with...
(uninstall-hook): ...this. Add new uninstall_include_dirs_qt* variables.
--
We have to use uninstall-hook because uninstall-local runs before the
header files have been removed from the include folders we want to
remove.
GnuPG-bug-id: 7205
Diffstat (limited to 'lang')
-rw-r--r-- | lang/qt/src/Makefile.am | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lang/qt/src/Makefile.am b/lang/qt/src/Makefile.am index 081adfd9..56da52d5 100644 --- a/lang/qt/src/Makefile.am +++ b/lang/qt/src/Makefile.am @@ -415,6 +415,12 @@ uninstall-cmake-files-qt5: -rm $(DESTDIR)$(libdir)/cmake/QGpgme/QGpgmeConfig.cmake -rmdir $(DESTDIR)$(libdir)/cmake/QGpgme/ uninstall_cmake_files_qt5 = uninstall-cmake-files-qt5 + +uninstall-include-dirs-qt5: + -rmdir $(DESTDIR)$(qgpgme5includedir) + -rmdir $(DESTDIR)$(camelcase5includedir) + -rmdir $(DESTDIR)$(includedir)/$(includeprefix5) +uninstall_include_dirs_qt5 = uninstall-include-dirs-qt5 endif if WANT_QT6 install-cmake-files-qt6: QGpgmeQt6Config.cmake QGpgmeQt6ConfigVersion.cmake @@ -430,11 +436,18 @@ uninstall-cmake-files-qt6: -rm $(DESTDIR)$(libdir)/cmake/QGpgmeQt6/QGpgmeQt6Config.cmake -rmdir $(DESTDIR)$(libdir)/cmake/QGpgmeQt6/ uninstall_cmake_files_qt6 = uninstall-cmake-files-qt6 + +uninstall-include-dirs-qt6: + -rmdir $(DESTDIR)$(qgpgme6includedir) + -rmdir $(DESTDIR)$(camelcase6includedir) + -rmdir $(DESTDIR)$(includedir)/$(includeprefix6) +uninstall_include_dirs_qt6 = uninstall-include-dirs-qt6 endif install-data-local: $(install_cmake_files_qt5) $(install_cmake_files_qt6) -uninstall-local: $(uninstall_cmake_files_qt5) $(uninstall_cmake_files_qt6) +uninstall-hook: $(uninstall_cmake_files_qt5) $(uninstall_cmake_files_qt6) \ + $(uninstall_include_dirs_qt5) $(uninstall_include_dirs_qt6) BUILT_SOURCES = $(qgpgme_moc_sources) $(camelcase_headers) |