From: Marc-André Lureau Date: Wed, 26 Aug 2020 13:06:21 +0000 (+0400) Subject: meson: install $localstatedir/run for qga X-Git-Tag: v5.2.0-rc0~144^2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8ab1aabc5d33a09ceee1adc1148f62cbb16cb43d;p=thirdparty%2Fqemu.git meson: install $localstatedir/run for qga Signed-off-by: Marc-André Lureau Message-Id: <20200826130622.553318-6-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini --- diff --git a/Makefile b/Makefile index dc3c20dd5e2..9a9e7c03018 100644 --- 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 diff --git a/qga/meson.build b/qga/meson.build index 3f28f74b52e..e5c5778a3e0 100644 --- a/qga/meson.build +++ b/qga/meson.build @@ -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)