Fix make targets so they detect changes

Broken in 10d92b3
This commit is contained in:
Ryan Dahl 2011-12-18 15:10:01 -08:00
Родитель ee0a7b928b
Коммит bb8f73419c
1 изменённых файлов: 8 добавлений и 5 удалений

Просмотреть файл

@ -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