From f6de136dc4673d2977dbda10bba048a3012a004d Mon Sep 17 00:00:00 2001
From: Kim Alvefur <zash@zash.se>
Date: Fri, 19 Mar 2021 15:51:38 +0100
Subject: make: Magic trick for teal-src/*.tl -> ./*.lua

---
 GNUmakefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/GNUmakefile b/GNUmakefile
index eaf7c9c8..f36870e9 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -105,7 +105,8 @@ lint:
 	@echo $$(sed -n '/^\tlocal exclude_files/,/^}/p;' .luacheckrc | sed '1d;$d' | wc -l) files ignored
 	shellcheck configure
 
-util/%.lua: teal-src/util/%.tl
+vpath %.tl teal-src/
+%.lua: %.tl
 	tl -I teal-src/ --gen-compat off --gen-target 5.1 gen $^ -o $@
 	-lua-format -i $@
 
-- 
cgit v1.2.3