Windows: Use pushd and popd for recursive builds

This makes it possible to recurse into arbitrary directories instead
of just subdirectories.
This commit is contained in:
Asanka Herath
2010-07-14 01:28:32 -04:00
parent 7843607a49
commit c111770aed

View File

@@ -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