]> git.sesse.net Git - vlc/commitdiff
Check that .lua files are declared (faster than make distcheck)
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 25 Feb 2010 16:45:20 +0000 (18:45 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 25 Feb 2010 16:45:20 +0000 (18:45 +0200)
share/Makefile.am

index 66c060aafc5e5753cea6dad5ae15c42bc89b9e5d..a288ea112d562080721294a8cfe8f65ddeb11d96 100644 (file)
@@ -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 $@ $<