Fix: make clean does not include dot-config
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 11 May 2016 14:37:12 +0000 (10:37 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 11 May 2016 14:37:54 +0000 (10:37 -0400)
Skip the CONFIG_TRACEPOINT test if dot-config has not been included.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Makefile

index 588ca960bf00ce96c840c964a50b52a738b95bf4..4804dfef0e157d43b6437c0694b2a55bd3f977d4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,9 +7,11 @@ ifneq ($(KERNELRELEASE),)
   # This part of the Makefile is used when called by the kernel build system
   # and defines the modules to be built.
 
-  ifeq ($(CONFIG_TRACEPOINTS),)
-    $(error The option CONFIG_TRACEPOINTS needs to be enabled in your kernel configuration)
-  endif # CONFIG_TRACEPOINTS
+  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
 
   TOP_LTTNG_MODULES_DIR := $(shell dirname $(lastword $(MAKEFILE_LIST)))
 
This page took 0.026871 seconds and 4 git commands to generate.