diff options
author | Christian Heimes <christian@cheimes.de> | 2012-09-06 22:56:56 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2012-09-06 22:56:56 (GMT) |
commit | 74b65c8ebcc5df066b376aa68570f1d2b1548f97 (patch) | |
tree | 6512947fcc6efa12ae239af19037976d47af6d6d /Makefile.pre.in | |
parent | 6d1fb5aa85fd69099f1e7787d6c7b3c4b117de3a (diff) | |
parent | 0897683381092a061e2c294389185bd638d72d47 (diff) | |
download | cpython-74b65c8ebcc5df066b376aa68570f1d2b1548f97.zip cpython-74b65c8ebcc5df066b376aa68570f1d2b1548f97.tar.gz cpython-74b65c8ebcc5df066b376aa68570f1d2b1548f97.tar.bz2 |
Issue #15591 and Issue #11715: silence output of setup.py when make is run with -s option.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index 6812865..aa091fb 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -202,6 +202,14 @@ HOST_GNU_TYPE= @host@ PROFILE_TASK= $(srcdir)/Tools/pybench/pybench.py -n 2 --with-gc --with-syscheck #PROFILE_TASK= $(srcdir)/Lib/test/regrtest.py +# Find the silent flag in MAKEFLAGS. The flags are sorted and normalized +# by GNU make. The 's' flag is always in the first word. +ifneq (,$(findstring s,$(word 1,$(MAKEFLAGS)))) + QUIET=-q +else + QUIET= +endif + # === Definitions added by makesetup === @@ -475,14 +483,8 @@ $(SYSCONFIGDATA): $(BUILDPYTHON) # Build the shared modules sharedmods: $(BUILDPYTHON) $(SYSCONFIGDATA) - if which getopt >/dev/null; then \ - mflags=`getopt s $$MAKEFLAGS 2>/dev/null | sed 's/ --.*/ /'`; \ - else \ - mflags=" $$MAKEFLAGS "; \ - fi; \ - case $$mflags in "* -s *") quiet=-q; esac; \ $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \ - $(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build + $(PYTHON_FOR_BUILD) $(srcdir)/setup.py $(QUIET) build # Build static library # avoid long command lines, same as LIBRARY_OBJS |