0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-09-22 10:43:39 -04:00

msvc.mak: fix yet another recursion situation

We don't want to call make to rebuild msvc.dep when that is what we
are actually trying to do, over and over again...

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

View File

@@ -382,11 +382,14 @@ dep: msvc.dep
# Include and/or generate msvc.dep as needed. This is too complex to # 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. # use the include-command feature, but we can open-code it here.
!IF $(EXTERNAL_DEPENDENCIES) == 1 !IF $(EXTERNAL_DEPENDENCIES) == 1
!IF [$(MAKE) /c MKDEP=1 /f Mkfiles\msvc.mak msvc.dep] == 0 !IFDEF MKDEP
!IF EXISTS(msvc.dep)
!INCLUDE msvc.dep !INCLUDE msvc.dep
!ELSEIFNDEF MKDEP
!ERROR Unable to rebuild dependencies file msvc.dep
!ENDIF !ENDIF
!ELSEIF [$(MAKE) /c MKDEP=1 /f Mkfiles\msvc.mak msvc.dep] == 0
!INCLUDE msvc.dep
!ELSE
!ERROR Unable to rebuild dependencies file msvc.dep
!ENDIF !ENDIF
#-- Magic hints to mkdep.pl --# #-- Magic hints to mkdep.pl --#