From 339efeb347720c65cf949f339934b15140dab84d Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 4 Jan 2008 15:46:52 +0000 Subject: [PATCH] pmake does not support -C dir :/ --- default.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/default.mk b/default.mk index 20ce2a4f..8f32e94f 100644 --- a/default.mk +++ b/default.mk @@ -24,11 +24,15 @@ ECHODIR ?= true _SUBDIR = @${_+_}for x in ${SUBDIR}; do \ if test -d $$x; then \ ${ECHODIR} "===> ${DIRPRFX}$$x ($@)"; \ - ${MAKE} -C $$x $@ DIRPRFX=${DIRPRFX}$$x/ || exit $$?; \ + cd $$x; \ + ${MAKE} $@ DIRPRFX=${DIRPRFX}$$x/ || exit $$?; \ + cd ..; \ fi; \ if test -d $$x.${OS}; then \ ${ECHODIR} "===> ${DIRPRFX}$$x.${OS} ($@)"; \ - ${MAKE} -C $$x.${OS} $@ DIRPRFX=${DIRPRFX}$$x/ || exit $$?; \ + cd $$x.${OS}; \ + ${MAKE} $@ DIRPRFX=${DIRPRFX}$$x/ || exit $$?; \ + cd ..; \ fi; \ done