]> git.droids-corp.org - dpdk.git/blobdiff - examples/vm_power_manager/Makefile
examples/ipsec-secgw: check event adapter errors
[dpdk.git] / examples / vm_power_manager / Makefile
index 50147c05d3d53e37867c73a6dc6c7f8c28fc7ac0..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-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