X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=Makefile;h=71cf3bf59c47c63441730a152d929d3c90bfc6da;hb=refs%2Fheads%2Fstable-2.6;hp=462cf208778cb2df28e1c028e6cca16690e21b0b;hpb=e80ba23f19e6a14f582ed3ed7ec5555fe5674369;p=lttng-modules.git diff --git a/Makefile b/Makefile index 462cf208..71cf3bf5 100644 --- a/Makefile +++ b/Makefile @@ -4,9 +4,11 @@ ifneq ($(KERNELRELEASE),) +ifdef CONFIG_LOCALVERSION # Check if dot-config is included. ifeq ($(CONFIG_TRACEPOINTS),) $(error The option CONFIG_TRACEPOINTS needs to be enabled in your kernel configuration) endif # CONFIG_TRACEPOINTS +endif # ifdef CONFIG_LOCALVERSION KERNELDIR = ${LTTNG_KERNELDIR} MAKEFILEDIR = $(shell dirname $(lastword $(MAKEFILE_LIST))) @@ -75,7 +77,9 @@ else # KERNELRELEASE PWD := $(shell pwd) CFLAGS = $(EXTCFLAGS) -default: +default: modules + +modules: LTTNG_KERNELDIR=$(KERNELDIR) $(MAKE) -C $(KERNELDIR) M=$(PWD) modules modules_install: