-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (17 loc) · 716 Bytes
/
Makefile
File metadata and controls
24 lines (17 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Usage: make PLATFORM=[windows,linux,darwin,freebsd,etc.]
PLATFORM = `node -e 'console.log(process.platform);'`
proxy : all
generate : obooru.model
cd nativ && python . clean && python . generate node ../obooru.model && cd -
copy :
ifdef PLATFORM
cp nativ/build/node/obooru.model/build/Default/test.node obooru_$(strip $(PLATFORM)).node || cp nativ/build/node/obooru.model/build/Release/test.node obooru_$(strip $(PLATFORM)).node
else
echo "PLATFORM not defined. Find 'test.node' under './nativ/build/node/obooru.model' and copy to './obooru_PLATFORM.node'."
endif
deps :
npm install .
cd node_modules/nativ-server && npm install . && cd -
all : generate deps copy
clean :
rm -rf build node_modules