meson: install desktop file
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 26 Aug 2020 13:06:20 +0000 (17:06 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 1 Sep 2020 05:51:52 +0000 (01:51 -0400)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20200826130622.553318-5-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Makefile
ui/meson.build

index d1a3cd77a575a00a6f17f11adc1493b648a2536f..dc3c20dd5e2ebbdb0ec0deb80bdfd2dba6acd13d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -243,9 +243,6 @@ endif
 # Needed by "meson install"
 export DESTDIR
 install: all install-datadir install-localstatedir
-       mkdir -p "$(DESTDIR)$(qemu_desktopdir)"
-       $(INSTALL_DATA) $(SRC_PATH)/ui/qemu.desktop \
-               "$(DESTDIR)$(qemu_desktopdir)/qemu.desktop"
        $(INSTALL_DIR) "$(DESTDIR)$(qemu_datadir)/keymaps"
 
 ifdef CONFIG_WIN32
index dddffc9a7acbecd1efaa978902df40950d688445..aa8aa3151660e16f4afddc3abae76f171e6c00f5 100644 (file)
@@ -114,4 +114,6 @@ endif
 subdir('shader')
 subdir('icons')
 
+install_data('qemu.desktop', install_dir: config_host['qemu_desktopdir'])
+
 modules += {'ui': ui_modules}