]> git.droids-corp.org - dpdk.git/blobdiff - examples/multi_process/hotplug_mp/Makefile
examples: detect default build directory
[dpdk.git] / examples / multi_process / hotplug_mp / Makefile
index bc36aeaed7c50e962a3160cd586b3ef2a590ab98..1fd7aa085c91cb028087c2d9cb1fb2ff5618ac99 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-linuxapp-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