mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
29 lines
643 B
Makefile
29 lines
643 B
Makefile
.PHONY: test local compile compile_system watch lint count
|
|
|
|
test:
|
|
busted
|
|
|
|
local: compile
|
|
luarocks make --local moonscript-dev-1.rockspec
|
|
|
|
compile:
|
|
lua5.1 bin/moonc moon/ moonscript/
|
|
echo "#!/usr/bin/env lua" > bin/moon
|
|
lua5.1 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/
|
|
|
|
lint:
|
|
moonc -l moonscript moon bin
|
|
|
|
count:
|
|
wc -l $$(git ls-files | grep 'moon$$') | sort -n | tail
|