forked from norman/telescope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (22 loc) · 564 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
.PHONY: test spec
LUA_DIR = /usr/local
LUA_VERSION = `lua -e 'print(_VERSION:sub(5,7))'`
LUA_SHARE = $(LUA_DIR)/share/lua/$(LUA_VERSION)
.PHONY : test clean docs install uninstall
spec:
@./tsc -f spec/*.lua
test:
@./tsc spec/*.lua
docs: clean
ldoc -t "Telescope API Docs" telescope.lua
clean:
rm -rf docs
install:
@mkdir -p $(LUA_SHARE)/telescope
cp telescope.lua $(LUA_SHARE)
cp telescope/compat_env.lua $(LUA_SHARE)/telescope
cp tsc $(LUA_DIR)/bin
uninstall:
-rm $(LUA_SHARE)/telescope.lua
-rm -rf $(LUA_SHARE)/telescope
-rm $(LUA_DIR)/bin/tsc