From bb8f73419c27e05f65eb39655ae04bae3b815628 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 18 Dec 2011 15:10:01 -0800 Subject: [PATCH] Fix make targets so they detect changes Broken in 10d92b3 --- Makefile | 13 ++++++++----- 1 file 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