Browse files

Fix make targets so they detect changes

Broken in 10d92b3
  • Loading branch information...
1 parent ee0a7b9 commit bb8f73419c27e05f65eb39655ae04bae3b815628 @ry ry committed Dec 18, 2011
Showing with 8 additions and 5 deletions.
  1. +8 −5 Makefile
View
13 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

0 comments on commit bb8f734

Please sign in to comment.