-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
39 lines (28 loc) · 825 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
BUILDTYPE ?=Release
N2O_TARGET =build/$(BUILDTYPE)/n2o.node
NODE_GYP_OPTS =
ifeq ($(BUILDTYPE),Debug)
NODE_GYP_OPTS+= --debug
endif
all: $(N2O_TARGET)
test: $(N2O_TARGET) node_modules
npm test
clean:
rm -rf {build,node_modules}
rm -rf test/build
rm -rf samples/hello_world/{build,node_modules}
rm -rf samples/sandbox/{build,node_modules}
find . -name npm-debug.log -exec rm -rf {} \;
xcode:
node-gyp configure --debug -- -f xcode
node-gyp configure --debug -C test -- -f xcode
node-gyp configure --debug -C samples/sandbox -- -f xcode
open n2o.xcodeproj
.PHONY: all test clean xcode
#==============================================================================
build/Makefile:
node-gyp configure $(NODE_GYP_OPTS)
$(N2O_TARGET): build/Makefile
node-gyp build $(NODE_GYP_OPTS)
node_modules:
npm link