Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1140cb2

Browse files
committed
When MAKEFLAGS contains '-s', invoke setup.py with '-q', to silence
its normally chatty nature. (This completes a side project to make "make -s" truly silent unless errors occur.)
1 parent 111f609 commit 1140cb2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Makefile.pre.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,10 @@ platform: $(PYTHON)
297297

298298
# Build the shared modules
299299
sharedmods: $(PYTHON)
300-
CC='$(CC)' LDSHARED='$(LDSHARED)' ./$(PYTHON) -E $(srcdir)/setup.py build
300+
case $$MAKEFLAGS in \
301+
*-s*) CC='$(CC)' LDSHARED='$(LDSHARED)' ./$(PYTHON) -E $(srcdir)/setup.py -q build;; \
302+
*) CC='$(CC)' LDSHARED='$(LDSHARED)' ./$(PYTHON) -E $(srcdir)/setup.py build;; \
303+
esac
301304

302305
# buildno should really depend on something like LIBRARY_SRC
303306
buildno: $(PARSER_OBJS) \

0 commit comments

Comments
 (0)