diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-03-06 09:35:01 +0300 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-03-06 11:48:13 +0300 |
commit | 74f2b2a8d006a49e1be7e30731c2f7365d2741d1 (patch) | |
tree | beee614380ebf9ad8b2364c399054d6d5c93f850 /perl/Makefile | |
parent | ba66c58637734a7a70196515a43328c2e92016c8 (diff) |
Make 'make' quieter while building git
I find it difficult to see compiler warnings amongst the massive
spewing produced by GNU make as it works through our productions.
This is especially true if CFLAGS winds up being rather long, due
to a large number of -W options being enabled and due to a number
of -D options being configured/required by my platform.
By defining QUIET_MAKE (e.g. make QUIET_MAKE=YesPlease) during
compilation users will get a less verbose output, such as:
...
CC builtin-grep.c
builtin-grep.c:187: warning: 'external_grep' defined but not used
CC builtin-init-db.c
CC builtin-log.c
CC builtin-ls-files.c
CC builtin-ls-tree.c
...
The verbose (normal make) output is still the default.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'perl/Makefile')
-rw-r--r-- | perl/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/perl/Makefile b/perl/Makefile index 099beda873e..2fceff27910 100644 --- a/perl/Makefile +++ b/perl/Makefile @@ -6,11 +6,15 @@ makfile:=perl.mak PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH)) prefix_SQ = $(subst ','\'',$(prefix)) +ifdef QUIET_MAKE + QUIET = @ +endif + all install instlibdir: $(makfile) - $(MAKE) -f $(makfile) $@ + $(QUIET)$(MAKE) -f $(makfile) $@ clean: - test -f $(makfile) && $(MAKE) -f $(makfile) $@ || exit 0 + $(QUIET)test -f $(makfile) && $(MAKE) -f $(makfile) $@ || exit 0 $(RM) ppport.h $(RM) $(makfile) $(RM) $(makfile).old |