changeset: 78868:4807ed8a627e parent: 78864:99a436de7029 parent: 78866:fcc629208842 user: Christian Heimes date: Fri Sep 07 01:07:12 2012 +0200 description: Issue #15591 and Issue #11715: silence output of setup.py when make is run with -s option. diff -r 99a436de7029 -r 4807ed8a627e Makefile.pre.in --- a/Makefile.pre.in Thu Sep 06 18:58:43 2012 +0200 +++ b/Makefile.pre.in Fri Sep 07 01:07:12 2012 +0200 @@ -202,6 +202,14 @@ 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 @@ # 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

AltStyle によって変換されたページ (->オリジナル) /