-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 1.02 KB
/
Makefile
File metadata and controls
24 lines (18 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
NETCONFIG_MODULE=node_modules/netconfig/build/Release/netconfig.node
ifeq ($(shell uname), Linux)
RESTIFY_DTRACE_MODULE=node_modules/restify/node_modules/dtrace-provider/build/c4che/build.config.py
else
RESTIFY_DTRACE_MODULE=node_modules/restify/node_modules/dtrace-provider/build/Release/DTraceProviderBindings.node
endif
NATIVE_MODULES=$(NETCONFIG_MODULE) $(RESTIFY_DTRACE_MODULE)
all: $(NATIVE_MODULES)
node_modules/.bin/jake
run:
node src/server/jsUnixApi
gen_dependencies=$(shell find $1 -type f | grep -v $1/build | grep -v 'README')
$(NETCONFIG_MODULE): $(call gen_dependencies,node_modules/netconfig)
cd node_modules/netconfig && ../../node_modules/.bin/node-gyp clean || exit 0
cd node_modules/netconfig && ../../node_modules/.bin/node-gyp configure build
$(RESTIFY_DTRACE_MODULE): $(call gen_dependencies,node_modules/restify/node_modules/dtrace-provider)
cd node_modules/restify/node_modules/dtrace-provider && node-waf clean || exit 0
cd node_modules/restify/node_modules/dtrace-provider && node-waf configure build