]> git.sesse.net Git - vlc/blobdiff - modules/Makefile.am
Use var_Inherit* instead of var_CreateGet*.
[vlc] / modules / Makefile.am
index 52288cfed8a4adbfb0787f0de33759888ef73aef..6a1703fb0bf4e0bf170a60a2cad6918b4629cee4 100644 (file)
@@ -56,8 +56,7 @@ SUBDIRS += .
 
 dist_noinst_SCRIPTS = genmf list.sh
 dist_noinst_DATA = LIST
-noinst_DATA = stamp-cache
-MOSTLYCLEANFILES = stamp-cache plugins-*-*.dat
+MOSTLYCLEANFILES = plugins-*-*.dat
 
 .PHONY: stamp-cache
 
@@ -67,10 +66,9 @@ stamp-cache:
        else \
                echo "Cross-compilation: cache generation skipped!" ; \
        fi
-       $(AM_V_at)touch stamp-cache
 
 install-exec-hook:
-       if test -z "$(DESTDIR)"; then \
+       if test -z "$(DESTDIR)" -a "$(build)" = "$(host)"; then \
                ../bin/vlc-cache-gen$(EXEEXT) "$(vlclibdir)/plugins" ; \
        else \
                echo "Staged installation: cache generation skipped!" ; \