Mercurial > audlegacy
changeset 873:44782ab84dcd trunk
[svn] - do not show OMK debugging notices unless we use 'make VERBOSITY=1'
author | nenolod |
---|---|
date | Fri, 24 Mar 2006 13:26:21 -0800 |
parents | ad32bde7829e |
children | 55128a9463a1 |
files | mk/objective.mk |
diffstat | 1 files changed, 43 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/mk/objective.mk Fri Mar 24 13:02:27 2006 -0800 +++ b/mk/objective.mk Fri Mar 24 13:26:21 2006 -0800 @@ -8,6 +8,7 @@ OBJECTIVE_DATA = none SUBDIRS = none HEADERS = none +VERBOSITY = 0 LIBDIR = $(libdir) BINDIR = $(bindir) @@ -27,7 +28,9 @@ done; @if test "$(SUBDIRS)" != "none"; then \ for i in $(SUBDIRS); do \ - echo "[installing subobjective: $$i]"; \ + if test $(VERBOSITY) -gt 0; then \ + echo "[installing subobjective: $$i]"; \ + fi; \ (cd $$i; $(MAKE) install || exit; cd ..); \ done; \ fi @@ -67,26 +70,33 @@ done; \ fi $(MAKE) install-posthook - @echo "[all objectives installed]" + @if test $(VERBOSITY) -gt 0; then \ + echo "[all objectives installed]"; \ + fi clean: $(MAKE) clean-prehook @if test "$(SUBDIRS)" != "none"; then \ for i in $(SUBDIRS); do \ - echo "[cleaning subobjective: $$i]"; \ + if test $(VERBOSITY) -gt 0; then \ + echo "[cleaning subobjective: $$i]"; \ + fi; \ (cd $$i; $(MAKE) clean || exit; cd ..); \ done; \ fi $(MAKE) clean-posthook $(RM) *.o *.lo *.so *.a *.sl - @echo "[all objectives cleaned]" + @if test $(VERBOSITY) -gt 0; then \ + echo "[all objectives cleaned]"; \ + fi distclean: clean @if test "$(SUBDIRS)" != "none"; then \ for i in $(SUBDIRS); do \ - echo "[distcleaning subobjective: $$i]"; \ + if test $(VERBOSITY) -gt 0; then \ + echo "[distcleaning subobjective: $$i]"; \ + fi; \ (cd $$i; $(MAKE) distclean || exit; cd ..); \ - echo "[distcleaning subobjective: $$i]"; \ done; \ fi @if test -f Makefile.in; then \ @@ -100,34 +110,52 @@ $(MAKE) build-prehook @if test "$(SUBDIRS)" != "none"; then \ for i in $(SUBDIRS); do \ - echo "[building subobjective: $$i]"; \ + if test $(VERBOSITY) -gt 0; then \ + echo "[building subobjective: $$i]"; \ + fi; \ cd $$i; $(MAKE) || exit; cd ..; \ - echo "[finished subobjective: $$i]"; \ + if test $(VERBOSITY) -gt 0; then \ + echo "[finished subobjective: $$i]"; \ + fi; \ done; \ fi @if test "$(OBJECTIVE_LIBS)" != "none"; then \ for i in $(OBJECTIVE_LIBS); do \ - echo "[building library objective: $$i]"; \ + if test $(VERBOSITY) -gt 0; then \ + echo "[building library objective: $$i]"; \ + fi; \ $(MAKE) $$i || exit; \ - echo "[finished library objective: $$i]"; \ + if test $(VERBOSITY) -gt 0; then \ + echo "[finished library objective: $$i]"; \ + fi; \ done; \ fi @if test "$(OBJECTIVE_LIBS_NOINST)" != "none"; then \ for i in $(OBJECTIVE_LIBS_NOINST); do \ - echo "[building library dependency: $$i]"; \ + if test $(VERBOSITY) -gt 0; then \ + echo "[building library dependency: $$i]"; \ + fi; \ $(MAKE) $$i || exit; \ - echo "[finished library dependency: $$i]"; \ + if test $(VERBOSITY) -gt 0; then \ + echo "[finished library dependency: $$i]"; \ + fi; \ done; \ fi @if test "$(OBJECTIVE_BINS)" != "none"; then \ for i in $(OBJECTIVE_BINS); do \ - echo "[building binary objective: $$i]"; \ + if test $(VERBOSITY) -gt 0; then \ + echo "[building binary objective: $$i]"; \ + fi; \ $(MAKE) $$i || exit; \ - echo "[finished binary objective: $$i]"; \ + if test $(VERBOSITY) -gt 0; then \ + echo "[finished binary objective: $$i]"; \ + fi; \ done; \ fi $(MAKE) build-posthook - @echo "[all objectives built]" + @if test $(VERBOSITY) -gt 0; then \ + echo "[all objectives built]"; \ + fi .c.o: printf "%10s %-20s\n" CC $<