From c111770aed9a72e38899dcc9a58fb6e58e1c1e12 Mon Sep 17 00:00:00 2001 From: Asanka Herath Date: Wed, 14 Jul 2010 01:28:32 -0400 Subject: [PATCH] Windows: Use pushd and popd for recursive builds This makes it possible to recurse into arbitrary directories instead of just subdirectories. --- windows/NTMakefile.w32 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/windows/NTMakefile.w32 b/windows/NTMakefile.w32 index 9d3f2a903..f02d93467 100644 --- a/windows/NTMakefile.w32 +++ b/windows/NTMakefile.w32 @@ -370,13 +370,13 @@ mkdirs: !ifdef SUBDIRS subdirs: - @for %%f in ( $(SUBDIRS) ) do @ (cd %%f && $(RMAKE) && cd ..) || exit /b 1 + @for %%f in ( $(SUBDIRS) ) do @ (pushd %%f && $(RMAKE) && popd) || exit /b 1 clean-subdirs: - @for %%f in ( $(SUBDIRS) ) do @ (cd %%f && $(RMAKE) clean && cd ..) || exit /b 1 + @for %%f in ( $(SUBDIRS) ) do @ (pushd %%f && $(RMAKE) clean && popd) || exit /b 1 test-subdirs: - @for %%f in ( $(SUBDIRS) ) do @ (cd %%f && $(RMAKE) test && cd ..) || exit /b 1 + @for %%f in ( $(SUBDIRS) ) do @ (pushd %%f && $(RMAKE) test && popd) || exit /b 1 all:: subdirs -- 2.11.4.GIT