forked from yjhjstz/llnode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (42 loc) · 1.05 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.PHONY: all
all: configure-with-addon
node-gyp rebuild
node scripts/cleanup.js
.PHONY: install-osx
install-osx: plugin
mkdir -p ~/Library/Application\ Support/LLDB/PlugIns/
cp -rf ./llnode.dylib \
~/Library/Application\ Support/LLDB/PlugIns/
.PHONY: uninstall-osx
uninstall-osx:
rm ~/Library/Application\ Support/LLDB/PlugIns/llnode.dylib
.PHONY: install-linux
install-linux: plugin
mkdir -p /usr/lib/lldb/plugins
cp -rf ./llnode.so /usr/lib/lldb/plugins
.PHONY: uninstall-linux
uninstall-linux:
rm /usr/lib/lldb/plugins/llnode.so
.PHONY: format
format:
clang-format -i src/*
# This depends on the system setting e.g. $PATH so can't actually be skipped
.PHONY: configure
configure:
node scripts/configure.js
.PHONY: configure-with-addon
configure-with-addon:
LLNODE_BUILD_ADDON=true node scripts/configure.js
.PHONY: plugin
plugin: configure
node-gyp rebuild
node scripts/cleanup.js
.PHONY: addon
addon: configure-with-addon
node-gyp rebuild
.PHONY: clean
clean:
$(RM) -r build
$(RM) config.gypi
$(RM) lldb
$(RM) addon.node llnode.so llnode.dylib