forked from nodejs/llnode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (40 loc) · 988 Bytes
/
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
TEST_LLDB_BINARY ?= $(shell which lldb-3.9)
.PHONY: all
all:
@echo "Please take a look at README.md"
.PHONY: install-osx
install-osx:
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:
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: plugin
plugin: configure
node-gyp rebuild
node scripts/cleanup.js
.PHONY: _travis
_travis:
TEST_LLDB_BINARY="$(TEST_LLDB_BINARY)" \
npm test
.PHONY: clean
clean:
$(RM) -r build
$(RM) config.gypi
$(RM) lldb
$(RM) llnode.so llnode.dylib