Mercurial > audlegacy
changeset 567:2ed2993cd920 trunk
[svn] fix make clean
author | nenolod |
---|---|
date | Thu, 02 Feb 2006 14:43:34 -0800 |
parents | ab7027a06ca9 |
children | f34898e3333a |
files | mk/objective.mk |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mk/objective.mk Thu Feb 02 14:42:17 2006 -0800 +++ b/mk/objective.mk Thu Feb 02 14:43:34 2006 -0800 @@ -26,10 +26,12 @@ clean: $(MAKE) clean-prehook - @for i in $(SUBDIRS); do \ - echo "[cleaning subobjective: $$i]"; \ - cd $$i; $(MAKE) clean; cd ..; \ - done + @if test "$(SUBDIRS)" != "none"; then \ + for i in $(SUBDIRS); do \ + echo "[cleaning subobjective: $$i]"; \ + (cd $$i; $(MAKE) clean; cd ..); \ + done; \ + fi $(MAKE) clean-posthook @echo "[all objectives cleaned]"