meson: install $localstatedir/run for qga
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 26 Aug 2020 13:06:21 +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-6-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Makefile
qga/meson.build

index dc3c20dd5e2ebbdb0ec0deb80bdfd2dba6acd13d..9a9e7c030189f8b1f5c5ea1c69437732baf4e370 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -232,17 +232,9 @@ distclean: clean ninja-distclean
 install-datadir:
        $(INSTALL_DIR) "$(DESTDIR)$(qemu_datadir)"
 
-install-localstatedir:
-ifdef CONFIG_POSIX
-ifeq ($(CONFIG_GUEST_AGENT),y)
-       $(INSTALL_DIR) "$(DESTDIR)$(qemu_localstatedir)"/run
-endif
-endif
-
-
 # Needed by "meson install"
 export DESTDIR
-install: all install-datadir install-localstatedir
+install: all install-datadir
        $(INSTALL_DIR) "$(DESTDIR)$(qemu_datadir)/keymaps"
 
 ifdef CONFIG_WIN32
index 3f28f74b52ef439c342232e53549a1f84b5b0f7e..e5c5778a3e09b4e19bf7510336b589159b1c6e42 100644 (file)
@@ -82,6 +82,8 @@ if targetos == 'windows'
     all_qga += [qga_msi]
     alias_target('msi', qga_msi)
   endif
+else
+  install_subdir('run', install_dir: get_option('localstatedir'))
 endif
 
 alias_target('qemu-ga', all_qga)