Makefile: Don't force user to run ./configure first
authorRyan Dahl <ry@tinyclouds.org>
Tue, 17 Jan 2012 07:28:25 +0000 (23:28 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 17 Jan 2012 07:28:29 +0000 (23:28 -0800)
Makefile

index 3b152d2..856b5a6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,14 +11,17 @@ endif
 # to check for changes.
 .PHONY: node node_g
 
-node:
+node: config.gypi
        $(MAKE) -C out BUILDTYPE=Release
        ln -fs out/Release/node node
 
-node_g:
+node_g: config.gypi
        $(MAKE) -C out BUILDTYPE=Debug
        ln -fs out/Debug/node node_g
 
+config.gypi: configure
+       ./configure
+
 out/Debug/node:
        $(MAKE) -C out BUILDTYPE=Debug