Comparison

GNUmakefile @ 11463:21523e3d395e

make: Magic trick for teal-src/*.tl -> ./*.lua
author Kim Alvefur <zash@zash.se>
date Fri, 19 Mar 2021 15:51:38 +0100
parent 11433:bef67691a713
child 12130:c4ca226ff386
comparison
equal deleted inserted replaced
11462:d1982b7eb00d 11463:21523e3d395e
103 lint: 103 lint:
104 $(LUACHECK) -q $$(HGPLAIN= hg files -I '**.lua') prosody prosodyctl 104 $(LUACHECK) -q $$(HGPLAIN= hg files -I '**.lua') prosody prosodyctl
105 @echo $$(sed -n '/^\tlocal exclude_files/,/^}/p;' .luacheckrc | sed '1d;$d' | wc -l) files ignored 105 @echo $$(sed -n '/^\tlocal exclude_files/,/^}/p;' .luacheckrc | sed '1d;$d' | wc -l) files ignored
106 shellcheck configure 106 shellcheck configure
107 107
108 util/%.lua: teal-src/util/%.tl 108 vpath %.tl teal-src/
109 %.lua: %.tl
109 tl -I teal-src/ --gen-compat off --gen-target 5.1 gen $^ -o $@ 110 tl -I teal-src/ --gen-compat off --gen-target 5.1 gen $^ -o $@
110 -lua-format -i $@ 111 -lua-format -i $@
111 112
112 util/%.so: 113 util/%.so:
113 $(MAKE) install -C util-src 114 $(MAKE) install -C util-src