[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/6] meson: install $localstatedir/run for qga
From: |
marcandre . lureau |
Subject: |
[PATCH 5/6] meson: install $localstatedir/run for qga |
Date: |
Wed, 26 Aug 2020 17:06:21 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
Makefile | 10 +---------
qga/meson.build | 2 ++
2 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/Makefile b/Makefile
index dc3c20dd5e..9a9e7c0301 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 3f28f74b52..e5c5778a3e 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)
--
2.26.2
- [PATCH 0/6] meson: convert the remaining of install target, marcandre . lureau, 2020/08/26
- [PATCH 1/6] meson: install pc-bios blobs, marcandre . lureau, 2020/08/26
- [PATCH 2/6] meson: install scripts/qemu-trace-stap, marcandre . lureau, 2020/08/26
- [PATCH 3/6] meson: install icons, marcandre . lureau, 2020/08/26
- [PATCH 4/6] meson: install desktop file, marcandre . lureau, 2020/08/26
- [PATCH 5/6] meson: install $localstatedir/run for qga,
marcandre . lureau <=
- [PATCH 6/6] build-sys: remove install target from Makefile, marcandre . lureau, 2020/08/26