X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fcmdline%2FMakefile;h=a03dfa8eea23ffbbb4357af45449623161675364;hb=fa647c5722b86cdabb1ed60701ef7eb6095bbd66;hp=a617cce115132ee1f1d23954a7059d9de0c4f80d;hpb=5d7b673d5fd6663b20c675dd382d9fb43b42af18;p=dpdk.git diff --git a/examples/cmdline/Makefile b/examples/cmdline/Makefile index a617cce115..a03dfa8eea 100644 --- a/examples/cmdline/Makefile +++ b/examples/cmdline/Makefile @@ -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