X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=examples%2Fvm_power_manager%2FMakefile;h=2fdb991d7c75afb1885e5a52638ff9ba46ccf8f5;hb=2daf565f91b505c2db86aa19f9be2fb881dfd788;hp=50147c05d3d53e37867c73a6dc6c7f8c28fc7ac0;hpb=a63504a90f6aa55ae7aea204a8944cd9af9342bd;p=dpdk.git diff --git a/examples/vm_power_manager/Makefile b/examples/vm_power_manager/Makefile index 50147c05d3..2fdb991d7c 100644 --- a/examples/vm_power_manager/Makefile +++ b/examples/vm_power_manager/Makefile @@ -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