]> git.droids-corp.org - dpdk.git/blobdiff - examples/vmdq/Makefile
examples/power: fix string null termination
[dpdk.git] / examples / vmdq / Makefile
index 87abeab93deb95f27efee8b9e9b913caad9c81e0..6a389c7760aa44baf1c43d7abed6d635c012355d 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-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