moonscript/Makefile
2015-08-13 18:06:03 +09:00

26 lines
509 B
Makefile

.PHONY: test local compile watch lint test_safe
test:
busted -p "_spec.moon$$"
test_safe:
busted -p "_spec.lua$$"
local: compile
luarocks make --local moonscript-dev-1.rockspec
global:
sudo luarocks make moonscript-dev-1.rockspec
compile:
lua bin/moonc moon/ moonscript/
echo "#!/usr/bin/env lua" > bin/moon
lua bin/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