[PATCH 1/1] Do not try to run 'make clean' in zlib directory

Peter Lemenkov lemenkov@REDACTED
Thu Sep 16 16:21:13 CEST 2010


No need to run 'make clean' in erts/emulator/zlib directory if we building
against shared library. This saves a little amount of CPU time.

Signed-off-by: Peter Lemenkov <lemenkov@REDACTED>
---
 erts/emulator/Makefile.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/erts/emulator/Makefile.in b/erts/emulator/Makefile.in
index 903abe6..f0ffe23 100644
--- a/erts/emulator/Makefile.in
+++ b/erts/emulator/Makefile.in
@@ -419,7 +419,9 @@ endif
 	$(RM) -f $(BINDIR)/beam $(BINDIR)/beam.*
 	$(RM) -rf $(BINDIR)/child_setup $(BINDIR)/child_setup.*
 	$(RM) -f $(BINDIR)/hipe_mkliterals $(BINDIR)/hipe_mkliterals.*
+ifndef Z_LIB
 	@set -e ; cd zlib && $(MAKE) clean
+endif
 	@set -e ; cd pcre && $(MAKE) clean
 
 .PHONY: all zlib pcre clean
-- 
1.7.2.3



More information about the erlang-patches mailing list