Received: by 10.223.164.202 with SMTP id h10csp132806wrb; Tue, 14 Nov 2017 12:18:50 -0800 (PST) X-Google-Smtp-Source: AGs4zMbqIuec9kHE4jzJBV+hA+6q3k54LaLVwnB4OoFQESK/LPrzzUtyoPCnL1vGuNALxf/z9Qid X-Received: by 10.98.67.154 with SMTP id l26mr15082804pfi.212.1510690730112; Tue, 14 Nov 2017 12:18:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510690730; cv=none; d=google.com; s=arc-20160816; b=Qyclyhmlyw6Jl2uLVMd5NDx/eJ5qMrsDhRJAM5aZroP1TmQEWYVnpEdZvb/i6YO+js usXG7HFrZHWONwC/419BF+tCqDdNu4ZkJqdbNhVKPnZj+HRlNpZ+2zmmVBOLE3jqXpVm /FWIKSzLTZeMIdlowDJCztiQmIjuLZn75+ZdF5nLw+jY+E/E296zKVh7C/RjsjcV/7Aw m/qR781LD/EGR5AUtLVRWsEA0HaGKVf+2JhQSwpYMZHM7wvtwNYh+duxAC8xhtfiDlhh b1GlSzVEgOP/M+JI5eEyCQSzbU0qmXiaXoBkg3Byv18ntgbvgTMQMV9zZtuaAvG7Ru7y s8yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:reply-to:message-id:date:subject:cc:to :from:arc-authentication-results; bh=JlZdBCLTCdZYwPzdbUawIRb7UXlE9z/zQH8Zex0kDts=; b=QkKai08dB6eeOZewrlxn7w1ovu0iPleaeQZ4rrpCCZvQ+Ss6Xi6Om5BZh44emDaFFT Lf+2/4adWxBcp4jwKoaUEI7ZeCeBHLkgRmKWDgx82w1bYD+vJvS/qa45pV/pjByPFX3U IFVN8rBBSfbkDXPXve6Yfpw1DSA7Vkw9SepcOu3jdc2DEz/Cx6FckP21bldvLEZzc9jb Fsw4cxnvDG1Ri/B6d36i8V2fGrXkXHDBbmYK750lz5OjJBXbt5+PpUWkhA9eC7w+9wED 9FLfR1shydp7Rz22dUei9JALwIE8Jcw0b0MjAIKYpaHulAWwQNfmbhNrL4WuXnDILDLr hVEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=exchange.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w5si16083518pgo.221.2017.11.14.12.18.37; Tue, 14 Nov 2017 12:18:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=exchange.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755644AbdKNUQm (ORCPT + 88 others); Tue, 14 Nov 2017 15:16:42 -0500 Received: from a2nlsmtp01-04.prod.iad2.secureserver.net ([198.71.225.38]:53360 "EHLO a2nlsmtp01-04.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752151AbdKNUQf (ORCPT ); Tue, 14 Nov 2017 15:16:35 -0500 Received: from linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id EhcMeR6xCV6DQEhcMet8yh; Tue, 14 Nov 2017 13:15:34 -0700 x-originating-ip: 107.180.71.197 Received: from kys by linuxonhyperv.com with local (Exim 4.89) (envelope-from ) id 1eEhcM-0004NF-LK; Tue, 14 Nov 2017 13:15:34 -0700 From: kys@exchange.microsoft.com To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com, leann.ogasawara@canonical.com, marcelo.cerri@canonical.com, sthemmin@microsoft.com Cc: "K. Y. Srinivasan" Subject: [PATCH 1/1] tools/hv: add install target to Makefile Date: Tue, 14 Nov 2017 13:15:33 -0700 Message-Id: <1510690533-16787-1-git-send-email-kys@exchange.microsoft.com> X-Mailer: git-send-email 1.7.1 Reply-To: kys@microsoft.com X-CMAE-Envelope: MS4wfDC0t3Mn8R4mFumH/Xw+ZHQ+9FPIUGpnL30Nshd1j0XOfYu1ng8wlQH+WnnNvXQIC5hk/U+9ER62ikOSZzJ2kiKV0KKpGIqTCLLGbrJdcPE0SADF55QW w+ElfWI6N5dj39PE4CTyLQ9+FqT5PPI3GMb1EQBL0tY6cvOTxuvs9K07J8yIo/ExgfhIOWYjlq3tvZjkVWesXQrgg803+4fo+ravNyQ59qbc7h6WvLKDoxq1 8QpvexBovrmXsj10zLV3+qgXhsueSzdvclrkrsVYJcD9/UOlgoEECbX1gCLw4bsdD5TbWnBmWiCrFHHtC9RKico5kTofvcpAJOkkEyXR8jusnd9wNfGRxYIW uR/TT1NMqYwLuGqwvTqAUs2sJWVgU7FFJvfsP2jFkz9DLBboI4qoJdvBb2BPWkXmXyRUzvnOGXecVih3P7RxnaGDZVTvIXDI/R7r1JY1T+/YeN/KJGSVayVO TQw49/Zy5isJuzxabvi42d1eA0gmhdlJXsg+EnVv2BNIU0ZrvR7R25n9jbAiEGrw5u3l/o2L/rYLosva Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vitaly Kuznetsov Makefiles usually come with 'install' target included so each distro doesn't need to implement the procedure from scratch. Add it to tools/hv. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- tools/hv/Makefile | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/tools/hv/Makefile b/tools/hv/Makefile index 0d1e61b..e8f0a0a 100644 --- a/tools/hv/Makefile +++ b/tools/hv/Makefile @@ -6,9 +6,30 @@ CFLAGS = $(WARNINGS) -g $(shell getconf LFS_CFLAGS) CFLAGS += -D__EXPORTED_HEADERS__ -I../../include/uapi -I../../include -all: hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon +sbindir ?= /usr/sbin +libexecdir ?= /usr/libexec +sharedstatedir ?= /var/lib + +ALL_PROGRAMS := hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon + +ALL_SCRIPTS := hv_get_dhcp_info.sh hv_get_dns_info.sh hv_set_ifconfig.sh + +all: $(ALL_PROGRAMS) + %: %.c $(CC) $(CFLAGS) -o $@ $^ clean: $(RM) hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon + +install: all + install -d -m 755 $(DESTDIR)$(sbindir); \ + install -d -m 755 $(DESTDIR)$(libexecdir)/hypervkvpd; \ + install -d -m 755 $(DESTDIR)$(sharedstatedir); \ + for program in $(ALL_PROGRAMS); do \ + install $$program -m 755 $(DESTDIR)$(sbindir); \ + done; \ + install -m 755 lsvmbus $(DESTDIR)$(sbindir); \ + for script in $(ALL_SCRIPTS); do \ + install $$script -m 755 $(DESTDIR)$(libexecdir)/hypervkvpd/$${script%.sh}; \ + done -- 1.7.1 From 1584038399444692119@xxx Tue Nov 14 10:52:17 +0000 2017 X-GM-THRID: 1584038399444692119 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread