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-19 03:10:01 +0400
committerRyan Dahl <ry@tinyclouds.org>2011-12-19 03:12:25 +0400
commitbb8f73419c27e05f65eb39655ae04bae3b815628 (patch)
tree62f53fca17dc78c7199babbd79f1332a63d54df6 /Makefile
parentee0a7b928bbdf638953fa8a0522ecb9a5bf35728 (diff)
Fix make targets so they detect changes
Broken in 10d92b3
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 0140fdeaef2..240c32f1d97 100644
--- a/Makefile
+++ b/Makefile
@@ -6,14 +6,17 @@ else
all: out/Makefile node_g
endif
-node: out/Release/node
- -ln -fs out/Release/node node
+# The .PHONY is needed to ensure that we recursively use the out/Makefile
+# to check for changes.
+.PHONY: node node_g
-out/Release/node:
+node:
$(MAKE) -C out BUILDTYPE=Release
+ ln -fs out/Release/node node
-node_g: out/Debug/node
- -ln -fs out/Debug/node node_g
+node_g:
+ $(MAKE) -C out BUILDTYPE=Debug
+ ln -fs out/Debug/node node_g
out/Debug/node:
$(MAKE) -C out BUILDTYPE=Debug