Commit 0bae97c5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Check that .lua files are declared (faster than make distcheck)

parent 647ea7ba
......@@ -189,6 +189,14 @@ luac_verbose_ = $(luac_verbose_$(AM_DEFAULT_VERBOSITY))
luac_verbose_0 = @echo " LUAC $@";
.lua.luac:
$(AM_V_at)for f in $(EXTRA_DIST); do \
test "$(srcdir)" = . || f="$(srcdir)/$$f"; \
if test $$f = $<; then \
exit 0; \
fi; \
done; \
echo "Attempt to byte-compile unknown file: $(<)!"; \
exit 1
$(AM_V_at)mkdir -p "$$(dirname '$@')"
$(luac_verbose)$(LUAC) -o $@ $<
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment