From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50201) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdZQ9-0003CJ-Cd for qemu-devel@nongnu.org; Sat, 18 May 2013 01:11:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UdZQ3-0005qi-Au for qemu-devel@nongnu.org; Sat, 18 May 2013 01:11:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1649) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdZQ3-0005qd-30 for qemu-devel@nongnu.org; Sat, 18 May 2013 01:10:59 -0400 From: Laszlo Ersek Date: Sat, 18 May 2013 07:13:14 +0200 Message-Id: <1368853994-32004-1-git-send-email-lersek@redhat.com> In-Reply-To: <1368851513-20550-1-git-send-email-lersek@redhat.com> References: <1368851513-20550-1-git-send-email-lersek@redhat.com> Subject: [Qemu-devel] [PATCH 7/6] Makefile: create ".../var/run" when installing the POSIX guest agent List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mdroth@linux.vnet.ibm.com, qemu-devel@nongnu.org Otherwise the default local state directory of POSIX qga won't exist after installation with a non-standard ${prefix} or DESTDIR. For now qga is the only user of ".../var" (= $qemu_localstatedir) too, so don't create that directory either unless we're installing the agent. Signed-off-by: Laszlo Ersek --- Makefile | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 7dc0204..1b1630d 100644 --- a/Makefile +++ b/Makefile @@ -318,13 +318,21 @@ endif install-datadir: $(INSTALL_DIR) "$(DESTDIR)$(qemu_datadir)" +install-localstatedir: +ifdef CONFIG_POSIX +ifneq (,$(findstring qemu-ga,$(TOOLS))) + $(INSTALL_DIR) "$(DESTDIR)$(qemu_localstatedir)"/run +endif +endif + install-confdir: $(INSTALL_DIR) "$(DESTDIR)$(qemu_confdir)" install-sysconfig: install-datadir install-confdir $(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(qemu_confdir)" -install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig install-datadir +install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig \ +install-datadir install-localstatedir $(INSTALL_DIR) "$(DESTDIR)$(bindir)" ifneq ($(TOOLS),) $(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)" -- 1.7.1