Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
saner targets
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Dec 17, 2011
1 parent a9f2c4a commit 10d92b3
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions Makefile
@@ -1,11 +1,22 @@
BUILDTYPE ?= Release

all: out/Makefile
$(MAKE) -C out BUILDTYPE=$(BUILDTYPE)
ifeq ($(BUILDTYPE),Release)
all: out/Makefile node
else
all: out/Makefile node_g
endif

node: out/Release/node
-ln -fs out/Release/node node

out/Release/node:
$(MAKE) -C out BUILDTYPE=Release

node_g: out/Debug/node
-ln -fs out/Debug/node node_g

out/Release/node: all
out/Debug/node:
$(MAKE) -C out BUILDTYPE=Debug

out/Makefile: common.gypi deps/uv/uv.gyp deps/http_parser/http_parser.gyp deps/zlib/zlib.gyp deps/v8/build/common.gypi deps/v8/tools/gyp/v8.gyp node.gyp options.gypi
tools/gyp_node -f make
Expand All @@ -17,7 +28,7 @@ uninstall:
out/Release/node tools/installer.js ./options.gypi uninstall

clean:
rm -rf out
-rm -rf out/Makefile node node_g out/**/*.o out/**/*.a out/$(BUILDTYPE)/node

distclean:
-rm -rf out
Expand Down

0 comments on commit 10d92b3

Please sign in to comment.