Skip to content

Commit bb8f734

Browse files
committed
Fix make targets so they detect changes
Broken in 10d92b3
1 parent ee0a7b9 commit bb8f734

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Makefile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@ else
66
all: out/Makefile node_g
77
endif
88

9-
node: out/Release/node
10-
-ln -fs out/Release/node node
9+
# The .PHONY is needed to ensure that we recursively use the out/Makefile
10+
# to check for changes.
11+
.PHONY: node node_g
1112

12-
out/Release/node:
13+
node:
1314
$(MAKE) -C out BUILDTYPE=Release
15+
ln -fs out/Release/node node
1416

15-
node_g: out/Debug/node
16-
-ln -fs out/Debug/node node_g
17+
node_g:
18+
$(MAKE) -C out BUILDTYPE=Debug
19+
ln -fs out/Debug/node node_g
1720

1821
out/Debug/node:
1922
$(MAKE) -C out BUILDTYPE=Debug

0 commit comments

Comments
 (0)