We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3dfdc9 commit 87fa9e8Copy full SHA for 87fa9e8
Makefile
@@ -1,6 +1,6 @@
1
LUA ?= lua5.1
2
LUA_VERSION = $(shell $(LUA) -e 'print(_VERSION:match("%d%.%d"))')
3
-LUAROCKS = luarocks-$(LUA_VERSION)
+LUAROCKS = luarocks --lua-version=$(LUA_VERSION)
4
LUA_PATH_MAKE = $(shell $(LUAROCKS) path --lr-path);./?.lua;./?/init.lua
5
LUA_CPATH_MAKE = $(shell $(LUAROCKS) path --lr-cpath);./?.so
6
@@ -25,12 +25,6 @@ compile:
25
$(LUA) bin/moonc -p bin/moon.moon >> bin/moon
26
echo "-- vim: set filetype=lua:" >> bin/moon
27
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
-
34
watch:
35
moonc moon/ moonscript/ && moonc -w moon/ moonscript/
36
0 commit comments