X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=Makefile.am;h=264e796ed8cbc906e9eafa00607b93b558bf1796;hb=f87e9843a7d50b63e78690f02860c993c22e9be4;hp=e2815c4e2236d27b89bb7b1fa2a0bd361dbc645c;hpb=e33be977f4e19b298c7805bca6204fb5720ff7c8;p=vlc diff --git a/Makefile.am b/Makefile.am index e2815c4e22..264e796ed8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -404,6 +404,18 @@ noinst_DATA = VLC.app endif endif +############################################################################### +# Installing plugins cache +############################################################################### +install-exec-hook: + if test "$(build)" = "$(host)"; then \ + LD_LIBRARY_PATH="$(DESTDIR)$(libdir):$$LD_LIBRARY_PATH" \ + "$(DESTDIR)$(vlclibdir)/vlc-cache-gen$(EXEEXT)" \ + "$(DESTDIR)$(vlclibdir)/plugins" ; \ + else \ + echo "Cross-compilation: cache generation skipped!" ; \ + fi + silentstd = $(silentstd_$(V)) silentstd_ = $(silentstd_$(AM_DEFAULT_VERBOSITY)) silentstd_0 = 2>&1 >/dev/null