From patchwork Fri Jan 13 16:56:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Thompson X-Patchwork-Id: 91472 Delivered-To: patches@linaro.org Received: by 10.140.20.99 with SMTP id 90csp281350qgi; Fri, 13 Jan 2017 08:56:39 -0800 (PST) X-Received: by 10.223.173.183 with SMTP id w52mr12955596wrc.164.1484326599454; Fri, 13 Jan 2017 08:56:39 -0800 (PST) Return-Path: Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com. [2a00:1450:400c:c09::22e]) by mx.google.com with ESMTPS id q66si1363099wma.126.2017.01.13.08.56.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jan 2017 08:56:39 -0800 (PST) Received-SPF: pass (google.com: domain of daniel.thompson@linaro.org designates 2a00:1450:400c:c09::22e as permitted sender) client-ip=2a00:1450:400c:c09::22e; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of daniel.thompson@linaro.org designates 2a00:1450:400c:c09::22e as permitted sender) smtp.mailfrom=daniel.thompson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-wm0-x22e.google.com with SMTP id r126so73416171wmr.0 for ; Fri, 13 Jan 2017 08:56:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cD6F6xtqqUCFeCd1o+sp3jYPE5TDIoZe5l5lsH0TzG8=; b=H4/vIBZ4B8lPILaWQVeiV0qZp0djioeQ04x/LWqwWTUmD0Xx233cUPK567CTKrG/HR o4wJxFkM8XBSdX9PMwoe7dBa8PfJG24cMbyo1U5f/BXwDPySQewGPqkZJNHKa0RLxkYu seBtNcPYKng5Rf3pVkELWrhZVkPPyJeSliQac= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cD6F6xtqqUCFeCd1o+sp3jYPE5TDIoZe5l5lsH0TzG8=; b=YCmGXWUXJMpXjKLFj1SjyvlFRZH1/FJWG5hcFtJWORCSzrpayGe8Hn9Cild1XJhAs/ JFEKxPqIhD6bHiGB8ygLbxIiheq1mB4paY0BhJE9D3uDnUKMrrmH/TUPVmsLmslASAQD 2DzMXtr0tK4PfjkZ9miyrTArVrJUKfokNcnup7ZiIyopyDRIiinzQwuk082Ba0s45dR2 7cM5B9uR9I6XJzccLbtLCkZF4Oe7rk68Z8Ghc04lIW9gw+/7YNFO7HtDR+NozjHLI7P4 D0O/jOZAtSKyx38l6yMrskNnck3kpRoKrZofz54g1zWGepEPxGzoS3tBLgxxv97mFe2Y FcZA== X-Gm-Message-State: AIkVDXI3VUHaBh+CNRgKX+4b+MbMalHq3q4/ItG+3P0LFCO0px9mVhLCBEEEnHzQkrTkLkwbWYQ= X-Received: by 10.223.170.5 with SMTP id p5mr14343655wrd.112.1484326599084; Fri, 13 Jan 2017 08:56:39 -0800 (PST) Return-Path: Received: from wychelm.lan (cpc87149-aztw31-2-0-cust149.18-1.cable.virginm.net. [77.101.221.150]) by smtp.gmail.com with ESMTPSA id u81sm5426393wmu.10.2017.01.13.08.56.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jan 2017 08:56:38 -0800 (PST) From: Daniel Thompson To: Andrew Morton Cc: Daniel Thompson , linux-mm@kvack.org, linux-kernel@vger.kernel.org, patches@linaro.org Subject: [PATCH] tools/vm: Add missing Makefile rules Date: Fri, 13 Jan 2017 16:56:30 +0000 Message-Id: <20170113165630.27541-1-daniel.thompson@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170113164948.25588-1-daniel.thompson@linaro.org> References: <20170113164948.25588-1-daniel.thompson@linaro.org> Currently the tools/vm Makefile has a rather arbitrary implicit build rule; page-types is the first value in TARGETS so lets just build that one! Additionally there is no install rule and this is needed for make -C tools vm_install to work properly. Provide a more sensible implicit build rule and a new install rule. Note that the variables names used by the install rule (DESTDIR and sbindir) are copied from prior-art in tools/power/cpupower. Signed-off-by: Daniel Thompson --- Notes: This is a resend with the linux-mm list spelled correctly (and with special apologies to Andrew for the spam). tools/vm/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.9.3 diff --git a/tools/vm/Makefile b/tools/vm/Makefile index 93aadaf7ff63..006029456988 100644 --- a/tools/vm/Makefile +++ b/tools/vm/Makefile @@ -9,6 +9,8 @@ CC = $(CROSS_COMPILE)gcc CFLAGS = -Wall -Wextra -I../lib/ LDFLAGS = $(LIBS) +all: $(TARGETS) + $(TARGETS): $(LIBS) $(LIBS): @@ -20,3 +22,9 @@ $(LIBS): clean: $(RM) page-types slabinfo page_owner_sort make -C $(LIB_DIR) clean + +sbindir ?= /usr/sbin + +install: all + install -d $(DESTDIR)$(sbindir) + install -m 755 -p $(TARGETS) $(DESTDIR)$(sbindir)