]> git.droids-corp.org - dpdk.git/blobdiff - examples/vm_power_manager/Makefile
examples: detect default build directory
[dpdk.git] / examples / vm_power_manager / Makefile
index e608bb61a96b612b94ab96039a8037cf00304ba7..2fdb991d7c75afb1885e5a52638ff9ba46ccf8f5 100644 (file)
@@ -9,8 +9,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