]> granicus.if.org Git - python/commitdiff
When MAKEFLAGS contains '-s', invoke setup.py with '-q', to silence
authorGuido van Rossum <guido@python.org>
Wed, 12 Sep 2001 18:59:25 +0000 (18:59 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 12 Sep 2001 18:59:25 +0000 (18:59 +0000)
its normally chatty nature.

(This completes a side project to make "make -s" truly silent unless
errors occur.)

Makefile.pre.in

index 67446cdd6b34835859eb9db5ff51b545c2f09f09..9c05dd8b83da504c134b6ec590cb156f30882e08 100644 (file)
@@ -297,7 +297,10 @@ platform: $(PYTHON)
 
 # Build the shared modules
 sharedmods: $(PYTHON)
-       CC='$(CC)' LDSHARED='$(LDSHARED)' ./$(PYTHON) -E $(srcdir)/setup.py build
+       case $$MAKEFLAGS in \
+       *-s*) CC='$(CC)' LDSHARED='$(LDSHARED)' ./$(PYTHON) -E $(srcdir)/setup.py -q build;; \
+       *) CC='$(CC)' LDSHARED='$(LDSHARED)' ./$(PYTHON) -E $(srcdir)/setup.py build;; \
+       esac
 
 # buildno should really depend on something like LIBRARY_SRC
 buildno: $(PARSER_OBJS) \