From: Felix Fietkau Date: Thu, 4 Nov 2021 14:53:50 +0000 (+0100) Subject: build: add SUBDIR_MAKE_DEBUG variable to make it easier to debug package makefiles X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=94b0849c19848beda9e1a215bcae0daac6927ff0;p=openwrt%2Fstaging%2Fjogo.git build: add SUBDIR_MAKE_DEBUG variable to make it easier to debug package makefiles Signed-off-by: Felix Fietkau --- diff --git a/include/subdir.mk b/include/subdir.mk index d33b947fdf..155f493538 100644 --- a/include/subdir.mk +++ b/include/subdir.mk @@ -27,7 +27,7 @@ lastdir=$(word $(words $(subst /, ,$(1))),$(subst /, ,$(1))) diralias=$(if $(findstring $(1),$(call lastdir,$(1))),,$(call lastdir,$(1))) subdir_make_opts = \ - -r -C $(1) \ + $(if $(SUBDIR_MAKE_DEBUG),-d) -r -C $(1) \ BUILD_SUBDIR="$(1)" \ BUILD_VARIANT="$(4)" \ ALL_VARIANTS="$(5)"