diff --git a/qt/icons/Makefile.am b/qt/icons/Makefile.am
index 49cef36..9f81fe3 100644
--- a/qt/icons/Makefile.am
+++ b/qt/icons/Makefile.am
@@ -1,26 +1,29 @@
# Makefile.am
# Copyright (C) 2022 g10 Code GmbH
#
# This file is part of PINENTRY.
#
# PINENTRY is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PINENTRY is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see .
# SPDX-License-Identifier: GPL-2.0+
## Process this file with automake to produce Makefile.in
EXTRA_DIST = data-error.svg \
document-encrypt.png \
hint.svg \
password-generate.svg \
visibility.svg
+
+icons_DATA = document-encrypt.png
+iconsdir = $(datadir)/pixmaps
diff --git a/qt5/icons/Makefile.am b/qt5/icons/Makefile.am
index 49cef36..9f81fe3 100644
--- a/qt5/icons/Makefile.am
+++ b/qt5/icons/Makefile.am
@@ -1,26 +1,29 @@
# Makefile.am
# Copyright (C) 2022 g10 Code GmbH
#
# This file is part of PINENTRY.
#
# PINENTRY is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PINENTRY is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see .
# SPDX-License-Identifier: GPL-2.0+
## Process this file with automake to produce Makefile.in
EXTRA_DIST = data-error.svg \
document-encrypt.png \
hint.svg \
password-generate.svg \
visibility.svg
+
+icons_DATA = document-encrypt.png
+iconsdir = $(datadir)/pixmaps