瀏覽代碼

build: add SUBDIR_MAKE_DEBUG variable to make it easier to debug package makefiles

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 4 年之前
父節點
當前提交
94b0849c19
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/subdir.mk

+ 1 - 1
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)"