mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
clean up the makefile
This commit is contained in:
parent
b3dfdc9cad
commit
87fa9e8da8
8
Makefile
8
Makefile
@ -1,6 +1,6 @@
|
||||
LUA ?= lua5.1
|
||||
LUA_VERSION = $(shell $(LUA) -e 'print(_VERSION:match("%d%.%d"))')
|
||||
LUAROCKS = luarocks-$(LUA_VERSION)
|
||||
LUAROCKS = luarocks --lua-version=$(LUA_VERSION)
|
||||
LUA_PATH_MAKE = $(shell $(LUAROCKS) path --lr-path);./?.lua;./?/init.lua
|
||||
LUA_CPATH_MAKE = $(shell $(LUAROCKS) path --lr-cpath);./?.so
|
||||
|
||||
@ -25,12 +25,6 @@ compile:
|
||||
$(LUA) bin/moonc -p bin/moon.moon >> bin/moon
|
||||
echo "-- vim: set filetype=lua:" >> bin/moon
|
||||
|
||||
compile_system:
|
||||
moonc moon/ moonscript/
|
||||
echo "#!/usr/bin/env lua" > bin/moon
|
||||
moonc -p bin/moon.moon >> bin/moon
|
||||
echo "-- vim: set filetype=lua:" >> bin/moon
|
||||
|
||||
watch:
|
||||
moonc moon/ moonscript/ && moonc -w moon/ moonscript/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user