From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui88m-0002XE-9L for qemu-devel@nongnu.org; Thu, 30 May 2013 15:04:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ui88h-0000U1-Me for qemu-devel@nongnu.org; Thu, 30 May 2013 15:04:00 -0400 Received: from mail-vc0-f181.google.com ([209.85.220.181]:62939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ui85d-0007fK-5q for qemu-devel@nongnu.org; Thu, 30 May 2013 15:00:45 -0400 Received: by mail-vc0-f181.google.com with SMTP id lf11so440625vcb.40 for ; Thu, 30 May 2013 12:00:44 -0700 (PDT) Sender: fluxion From: Michael Roth Date: Thu, 30 May 2013 13:59:01 -0500 Message-Id: <1369940341-9043-8-git-send-email-mdroth@linux.vnet.ibm.com> In-Reply-To: <1369940341-9043-1-git-send-email-mdroth@linux.vnet.ibm.com> References: <1369940341-9043-1-git-send-email-mdroth@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 7/7] Makefile: create ".../var/run" when installing the POSIX guest agent List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, lersek@redhat.com From: Laszlo Ersek 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 Signed-off-by: Michael Roth --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9695c9d..a96736b 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.9.5