From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751049AbdAMQv2 (ORCPT ); Fri, 13 Jan 2017 11:51:28 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:35259 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750775AbdAMQv0 (ORCPT ); Fri, 13 Jan 2017 11:51:26 -0500 From: Daniel Thompson To: Andrew Morton Cc: Daniel Thompson , linux-mm@kernel.org, linux-kernel@vger.kernel.org, patches@linaro.org Subject: [PATCH] tools/vm: Add missing Makefile rules Date: Fri, 13 Jan 2017 16:49:48 +0000 Message-Id: <20170113164948.25588-1-daniel.thompson@linaro.org> X-Mailer: git-send-email 2.9.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- tools/vm/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) 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) -- 2.9.3