]> git.droids-corp.org - dpdk.git/blobdiff - examples/qos_sched/Makefile
examples: detect default build directory
[dpdk.git] / examples / qos_sched / Makefile
index 44df68ab82a1a41414c8215706c23cbd95740d32..a25875900e1d6f39615b15b953bc0f03b2e24db9 100644 (file)
@@ -43,8 +43,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