Skip to content

Commit 87fa9e8

Browse files
committed
clean up the makefile
1 parent b3dfdc9 commit 87fa9e8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Makefile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
LUA ?= lua5.1
22
LUA_VERSION = $(shell $(LUA) -e 'print(_VERSION:match("%d%.%d"))')
3-
LUAROCKS = luarocks-$(LUA_VERSION)
3+
LUAROCKS = luarocks --lua-version=$(LUA_VERSION)
44
LUA_PATH_MAKE = $(shell $(LUAROCKS) path --lr-path);./?.lua;./?/init.lua
55
LUA_CPATH_MAKE = $(shell $(LUAROCKS) path --lr-cpath);./?.so
66

@@ -25,12 +25,6 @@ compile:
2525
$(LUA) bin/moonc -p bin/moon.moon >> bin/moon
2626
echo "-- vim: set filetype=lua:" >> bin/moon
2727

28-
compile_system:
29-
moonc moon/ moonscript/
30-
echo "#!/usr/bin/env lua" > bin/moon
31-
moonc -p bin/moon.moon >> bin/moon
32-
echo "-- vim: set filetype=lua:" >> bin/moon
33-
3428
watch:
3529
moonc moon/ moonscript/ && moonc -w moon/ moonscript/
3630

0 commit comments

Comments
 (0)