-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (38 loc) · 879 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
LUA_DIR=/usr/local
LUA_LIBDIR=$(LUA_DIR)/lib/lua/5.1
LUA_SHAREDIR=$(LUA_DIR)/share/lua/5.1
install:
mkdir -p $(LUA_SHAREDIR)/betelgeuse
# cp betelgeuse.lua $(LUA_SHAREDIR)
cp -r betelgeuse/* $(LUA_SHAREDIR)/betelgeuse
uninstall:
# rm -f $(LUA_SHAREDIR)/betelgeuse.lua
rm -rf $(LUA_SHAREDIR)/betelgeuse
.PHONY: rigel
rigel:
ln -frs rigel/examples/makefile examples/Makefile
ln -frs rigel/examples/*.raw examples
ln -frs rigel/misc misc
ln -frs rigel/platform platform
mkdir -p examples/out
.PHONY: rigel-clean
rigel-clean:
rm -f examples/Makefile
rm -f examples/*.raw
rm -rf misc
rm -rf platform
clean:
rm -rf out/*
.PHONY: results
results: rigel
mkdir -p examples/dbg
mkdir -p results/graphs
luajit results/run-tests.lua
.PHONY: clipboard
clipboard: results
column -s, -t results/cycles.txt | xclip -selection c
.PHONY: doc
doc:
ldoc .
test:
busted