[lttng-dev] [PATCH lttng-modules] Add modules target to base Makefile

Michael Jeanson mjeanson at efficios.com
Wed May 11 14:38:06 UTC 2016


This way running 'make modules' will indeed build the modules
like in the upstream build system.

Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
---
 Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 588ca96..738a35c 100644
--- a/Makefile
+++ b/Makefile
@@ -101,7 +101,9 @@ KERNELDIR ?= /lib/modules/$(shell uname -r)/build
 PWD := $(shell pwd)
 CFLAGS = $(EXTCFLAGS)
 
-default:
+default: modules
+
+modules:
 	$(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_LTTNG=m modules
 
 modules_install:
-- 
1.9.1



More information about the lttng-dev mailing list