tools/Win.mk:Fix an pass1dep error when USERDEPDIRS is empty in Windows native build

This commit is contained in:
zouboan 2022-11-12 20:38:06 +08:00 committed by Xiang Xiao
parent f115a97bdc
commit 498bc98b1b

View File

@ -557,7 +557,9 @@ clean_bootloader:
# pass2dep: Create pass2 build dependencies
pass1dep: context tools\mkdeps$(HOSTEXEEXT)
ifneq ($(USERDEPDIRS),)
$(Q) for %%G in ($(USERDEPDIRS)) do ( $(MAKE) -C %%G depend )
endif
pass2dep: context tools\mkdeps$(HOSTEXEEXT)
$(Q) for %%G in ($(KERNDEPDIRS)) do ( $(MAKE) -C %%G EXTRAFLAGS="$(KDEFINE) $(EXTRAFLAGS)" depend )