X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fquota_watermark%2FMakefile;h=8ef053198a6188104e0fcc7c4094e40ccba8c84a;hb=a951e147ea95b26815c72eb710e0b2b8e5d85e40;hp=ec7d989ae32621c67fc6754b332f77565a180ad2;hpb=742bde12f3bd008c2f06d744330436d8b1a56720;p=dpdk.git diff --git a/examples/quota_watermark/Makefile b/examples/quota_watermark/Makefile index ec7d989ae3..8ef053198a 100644 --- a/examples/quota_watermark/Makefile +++ b/examples/quota_watermark/Makefile @@ -5,8 +5,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