Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-12-17 15:23:17 +0400
committerRyan Dahl <ry@tinyclouds.org>2011-12-17 15:23:17 +0400
commit10d92b3dcd8dbe4e3fe7cce90f7e792fec3364d0 (patch)
tree5083d175993d7f3763cef7bb605558fb0052e77f /Makefile
parenta9f2c4aa307c3dc838d9ecb0fb4e241a42f4f2a1 (diff)
saner targets
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 15 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index b195f2e66a5..0140fdeaef2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,22 @@
BUILDTYPE ?= Release
-all: out/Makefile
- $(MAKE) -C out BUILDTYPE=$(BUILDTYPE)
+ifeq ($(BUILDTYPE),Release)
+all: out/Makefile node
+else
+all: out/Makefile node_g
+endif
+
+node: out/Release/node
-ln -fs out/Release/node node
+
+out/Release/node:
+ $(MAKE) -C out BUILDTYPE=Release
+
+node_g: out/Debug/node
-ln -fs out/Debug/node node_g
-out/Release/node: all
+out/Debug/node:
+ $(MAKE) -C out BUILDTYPE=Debug
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 options.gypi
tools/gyp_node -f make
@@ -17,7 +28,7 @@ uninstall:
out/Release/node tools/installer.js ./options.gypi uninstall
clean:
- rm -rf out
+ -rm -rf out/Makefile node node_g out/**/*.o out/**/*.a out/$(BUILDTYPE)/node
distclean:
-rm -rf out