From: Michael Jeanson Date: Wed, 11 May 2016 14:38:06 +0000 (-0400) Subject: Fix: add modules target to base Makefile X-Git-Tag: v2.9.0-rc1~62 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=87d1b66f8d2c028614948f163f1a36b6c703f3c0;p=lttng-modules.git Fix: add modules target to base Makefile This way running 'make modules' will indeed build the modules like in the upstream build system. Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/Makefile b/Makefile index 4804dfef..c0b562a6 100644 --- a/Makefile +++ b/Makefile @@ -103,7 +103,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: