msvc.mak: avoid infinite recursion on msvc.dep

We can't call $(MAKE) on msvc.dep if running that requires us to have
msvc.dep...

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
H. Peter Anvin 2017-11-08 11:06:39 -08:00
parent d685bd2c4c
commit 9fd8a34938

View file

@ -382,9 +382,9 @@ dep: msvc.dep
# Include and/or generate msvc.dep as needed. This is too complex to
# use the include-command feature, but we can open-code it here.
!IF $(EXTERNAL_DEPENDENCIES) == 1
!IF [$(MAKE) /c msvc.dep] == 0
!IF [$(MAKE) /c MKDEP=1 /f Mkfiles\msvc.mak msvc.dep] == 0
!INCLUDE msvc.dep
!ELSE
!ELSEIFNDEF MKDEP
!ERROR Unable to rebuild dependencies file msvc.dep
!ENDIF
!ENDIF