-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 741 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 741 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
25
26
27
28
METEOR_TOOL_DIR := $$HOME/.meteor/packages/meteor-tool/1.1.10/mt-os.linux.x86_64
all: libnfslie.so run-mongo.js
libnfslie.so: nfslie.c
$(CC) -g -shared -fPIC -o $@ $< -ldl
run-mongo.js: crush.patch | run-mongo.js.orig
cp $| $@
patch $@ < $<
run-mongo.js.orig:
cp $(METEOR_TOOL_DIR)/tools/runners/run-mongo.js $@
install: run-mongo.js libnfslie.so
cp run-mongo.js $(METEOR_TOOL_DIR)/tools/runners
cp libnfslie.so $(METEOR_TOOL_DIR)/dev_bundle/lib
uninstall:
test -e run-mongo.js.orig
cp run-mongo.js.orig $(METEOR_TOOL_DIR)/tools/runners/run-mongo.js
rm -f $(METEOR_TOOL_DIR)/dev_bundle/lib/libnfslie.so
diff: run-mongo.js | run-mongo.js.orig
diff -u $| $< > crush.patch || true
touch $<
.PHONY: all install uninstall diff