From ef9c79c92d067055560c364588f51a9f26f109b7 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Fri, 6 Jul 2012 13:05:27 -0700 Subject: [PATCH] compat: add install-ckmake target Lets users quickly install ckmake onto /usr/bin/ with DESTDIR as an option target directory. Signed-off-by: Luis R. Rodriguez --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 05a7d7250eca..cd4fc213a93e 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,8 @@ export KLIB:= /lib/modules/$(shell uname -r) endif export KLIB_BUILD ?= $(KLIB)/build +DESTDIR?= + ifeq ($(KERNELRELEASE),) export PWD := $(shell pwd) export COMPAT_BASE_TREE := "linux-next.git" @@ -69,6 +71,10 @@ $(COMPAT_CONFIG): install: modules +install-ckmake: + @mkdir -p $(DESTDIR)/usr/bin/ + @install bin/ckmake $(DESTDIR)/usr/bin/ + clean: $(MAKE) -C $(KLIB_BUILD) M=$(PWD) clean -- 2.30.2