diff options
author | Roy Marples <roy@marples.name> | 2008-01-04 15:46:52 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-01-04 15:46:52 +0000 |
commit | 339efeb347720c65cf949f339934b15140dab84d (patch) | |
tree | 1d9048932c94e5640e37eb2b6fe87a01bdcef4b4 | |
parent | 09cf3342d5629c2417f61482e6d3291f00966a18 (diff) |
pmake does not support -C dir :/
-rw-r--r-- | default.mk | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |