Changeset

11433:bef67691a713

make: Add target for building Teal sources Compiled Lua targets included in parallel in order to not add a hard dependency on Teal, at least not yet.
author Kim Alvefur <zash@zash.se>
date Tue, 09 Mar 2021 13:59:45 +0100
parents 11432:113f3912c7cb
children 11434:66d4067bdfb2
files GNUmakefile
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/GNUmakefile	Tue Mar 09 14:36:46 2021 +0100
+++ b/GNUmakefile	Tue Mar 09 13:59:45 2021 +0100
@@ -105,6 +105,10 @@
 	@echo $$(sed -n '/^\tlocal exclude_files/,/^}/p;' .luacheckrc | sed '1d;$d' | wc -l) files ignored
 	shellcheck configure
 
+util/%.lua: teal-src/util/%.tl
+	tl -I teal-src/ --gen-compat off --gen-target 5.1 gen $^ -o $@
+	-lua-format -i $@
+
 util/%.so:
 	$(MAKE) install -C util-src