File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,13 @@ LUAROCKS = luarocks --lua-version=$(LUA_VERSION)
4
4
LUA_PATH_MAKE = $(shell $(LUAROCKS ) path --lr-path) ;./?.lua;./?/init.lua
5
5
LUA_CPATH_MAKE = $(shell $(LUAROCKS ) path --lr-cpath) ;./?.so
6
6
7
- .PHONY : test local compile compile_system watch lint count show
7
+ .PHONY : test local build watch lint count show
8
8
9
- test :
10
- busted
9
+ build :
10
+ LUA_PATH=' $(LUA_PATH_MAKE)' LUA_CPATH=' $(LUA_CPATH_MAKE)' $(LUA ) bin/moonc moon/ moonscript/
11
+ echo " #!/usr/bin/env lua" > bin/moon
12
+ $(LUA ) bin/moonc -p bin/moon.moon >> bin/moon
13
+ echo " -- vim: set filetype=lua:" >> bin/moon
11
14
12
15
show :
13
16
# LUA $(LUA)
@@ -16,14 +19,11 @@ show:
16
19
# LUA_PATH_MAKE $(LUA_PATH_MAKE)
17
20
# LUA_CPATH_MAKE $(LUA_CPATH_MAKE)
18
21
19
- local : compile
20
- LUA_PATH= ' $(LUA_PATH_MAKE) ' LUA_CPATH= ' $(LUA_CPATH_MAKE) ' $( LUAROCKS ) make --local moonscript-dev-1.rockspec
22
+ test : build
23
+ busted
21
24
22
- compile :
23
- LUA_PATH=' $(LUA_PATH_MAKE)' LUA_CPATH=' $(LUA_CPATH_MAKE)' $(LUA ) bin/moonc moon/ moonscript/
24
- echo " #!/usr/bin/env lua" > bin/moon
25
- $(LUA ) bin/moonc -p bin/moon.moon >> bin/moon
26
- echo " -- vim: set filetype=lua:" >> bin/moon
25
+ local : build
26
+ LUA_PATH=' $(LUA_PATH_MAKE)' LUA_CPATH=' $(LUA_CPATH_MAKE)' $(LUAROCKS ) make --local moonscript-dev-1.rockspec
27
27
28
28
watch :
29
29
moonc moon/ moonscript/ && moonc -w moon/ moonscript/
You can’t perform that action at this time.
0 commit comments