]> git.droids-corp.org - dpdk.git/blobdiff - examples/quota_watermark/qw/Makefile
examples: detect default build directory
[dpdk.git] / examples / quota_watermark / qw / Makefile
index 9971acc41bb8e9aec4475865bdd8eaf82e1ac307..3f10f01c3b701d4f47dd741dadd6d45df1bf7d01 100644 (file)
@@ -5,8 +5,8 @@ ifeq ($(RTE_SDK),)
 $(error "Please define RTE_SDK environment variable")
 endif
 
-# Default target, can be overridden by command line or environment
-RTE_TARGET ?= x86_64-native-linux-gcc
+# Default target, detect a build directory, by looking for a path with a .config
+RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))
 
 include $(RTE_SDK)/mk/rte.vars.mk