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