build: fix `make -j' fails after `make clean'

make fails if:
    ./configure && make clean && make -j6

as out/Makefile has not yet be made when entering sub dirs
This commit is contained in:
Bearice Ren 2012-08-26 11:20:42 +08:00 коммит произвёл Ben Noordhuis
Родитель 2418434568
Коммит ef3617c6f8
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -22,11 +22,11 @@ endif
# to check for changes.
.PHONY: node node_g
node: config.gypi
node: config.gypi out/Makefile
$(MAKE) -C out BUILDTYPE=Release V=$(V)
ln -fs out/Release/node node
node_g: config.gypi
node_g: config.gypi out/Makefile
$(MAKE) -C out BUILDTYPE=Debug V=$(V)
ln -fs out/Debug/node node_g