@@ -4,6 +4,11 @@ BUILDTYPE ?= Release
4
4
PYTHON ?= python
5
5
DESTDIR ?=
6
6
7
+ # Default to verbose builds.
8
+ # To do quite/pretty builds, run `make V=` to set V to an empty string,
9
+ # or set the V environment variable to an empty string.
10
+ V ?= 1
11
+
7
12
# BUILDTYPE=Debug builds both release and debug builds. If you want to compile
8
13
# just the debug build, run `make -C out BUILDTYPE=Debug` instead.
9
14
ifeq ($(BUILDTYPE ) ,Release)
@@ -17,18 +22,18 @@ endif
17
22
.PHONY : node node_g
18
23
19
24
node : config.gypi
20
- $(MAKE ) -C out BUILDTYPE=Release
25
+ $(MAKE ) -C out BUILDTYPE=Release V= $( V )
21
26
ln -fs out/Release/node node
22
27
23
28
node_g : config.gypi
24
- $(MAKE ) -C out BUILDTYPE=Debug
29
+ $(MAKE ) -C out BUILDTYPE=Debug V= $( V )
25
30
ln -fs out/Debug/node node_g
26
31
27
32
config.gypi : configure
28
33
./configure
29
34
30
35
out/Debug/node :
31
- $(MAKE ) -C out BUILDTYPE=Debug
36
+ $(MAKE ) -C out BUILDTYPE=Debug V= $( V )
32
37
33
38
out/Makefile : common.gypi deps/uv/uv.gyp deps/http_parser/http_parser.gyp deps/zlib/zlib.gyp deps/v8/build/common.gypi deps/v8/tools/gyp/v8.gyp node.gyp config.gypi
34
39
$(PYTHON ) tools/gyp_node -f make
@@ -201,10 +206,10 @@ $(PKG):
201
206
rm -rf $(PKGDIR )
202
207
rm -rf out/deps out/Release
203
208
./configure --prefix=$(PKGDIR ) /32/usr/local --without-snapshot --dest-cpu=ia32
204
- $(MAKE ) install
209
+ $(MAKE ) install V= $( V )
205
210
rm -rf out/deps out/Release
206
211
./configure --prefix=$(PKGDIR ) /usr/local --without-snapshot --dest-cpu=x64
207
- $(MAKE ) install
212
+ $(MAKE ) install V= $( V )
208
213
lipo $(PKGDIR ) /32/usr/local/bin/node \
209
214
$(PKGDIR ) /usr/local/bin/node \
210
215
-output $(PKGDIR ) /usr/local/bin/node-universal \
0 commit comments