forked from brave-experiments/ad-block
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (24 loc) · 1.01 KB
/
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
.PHONY: build
.PHONY: test
.PHONY: sample
.PHONY: perf
.PHONY: clean
build:
./node_modules/.bin/node-gyp configure && node-gyp build
test:
./node_modules/node-gyp/gyp/gyp_main.py --generator-output=./build --depth=. -f ninja test/binding.gyp
./node_modules/node-gyp/gyp/gyp_main.py --generator-output=./build --depth=. -f xcode test/binding.gyp
ninja -C build/out/Default -f build.ninja
./build/out/Default/test || [ $$? -eq 0 ]
sample:
./node_modules/node-gyp/gyp/gyp_main.py --generator-output=./build --depth=. -f ninja sample/binding.gyp
./node_modules/node-gyp/gyp/gyp_main.py --generator-output=./build --depth=. -f xcode sample/binding.gyp
ninja -C build/out/Default -f build.ninja
./build/out/Default/sample
perf:
./node_modules/node-gyp/gyp/gyp_main.py --generator-output=./build --depth=. -f ninja perf/binding.gyp
./node_modules/node-gyp/gyp/gyp_main.py --generator-output=./build --depth=. -f xcode perf/binding.gyp
ninja -C build/out/Default -f build.ninja
./build/out/Default/perf
clean:
rm -Rf build