Skip to content

Commit 791e015

Browse files
committed
bring back build from system
1 parent 75aa95d commit 791e015

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ build:
1212
$(LUA) bin/moonc -p bin/moon.moon >> bin/moon
1313
echo "-- vim: set filetype=lua:" >> bin/moon
1414

15+
16+
# This will rebuild MoonScript from the (hopefully working) system installation of moonc
17+
build_from_system:
18+
moonc moon/ moonscript/
19+
echo "#!/usr/bin/env lua" > bin/moon
20+
moonc -p bin/moon.moon >> bin/moon
21+
echo "-- vim: set filetype=lua:" >> bin/moon
22+
1523
show:
1624
# LUA $(LUA)
1725
# LUA_VERSION $(LUA_VERSION)
@@ -22,7 +30,6 @@ show:
2230
test: build
2331
busted
2432

25-
2633
build_test_outputs: build
2734
BUILD=1 busted spec/lang_spec.moon
2835

0 commit comments

Comments
 (0)