]> git.sesse.net Git - vlc/blobdiff - modules/Makefile.am
Proofread byte order inline functions
[vlc] / modules / Makefile.am
index f739ecc88f520fbd50cf06c94bb178bd3846978c..9205ea26ecab0975a22a7d8a5a425fd89483426b 100644 (file)
@@ -63,11 +63,13 @@ SUBDIRS += .
 
 dist_noinst_SCRIPTS = genmf list.sh
 dist_noinst_DATA = LIST
-MOSTLYCLEANFILES = plugins.dat*
+noinst_DATA = plugins.dat
+MOSTLYCLEANFILES = $(noinst_DATA)
 
-.PHONY: stamp-cache
+.PHONY: plugins.dat
 
-stamp-cache:
+plugins.dat:
+       $(AM_V_at)rm -f plugins.dat
        $(AM_V_GEN)if test "$(build)" = "$(host)"; then \
                ../bin/vlc-cache-gen$(EXEEXT) . ; \
        else \
@@ -75,10 +77,10 @@ stamp-cache:
        fi
 
 install-exec-hook:
-       if test -z "$(DESTDIR)" -a "$(build)" = "$(host)"; then \
-               LD_LIBRARY_PATH="$(libdir)" \
-               "$(vlclibdir)/vlc-cache-gen$(EXEEXT)" \
-                        "$(vlclibdir)/plugins" ; \
+       if test "$(build)" = "$(host)"; then \
+               LD_LIBRARY_PATH="$(DESTDIR)$(libdir):$$LD_LIBRARY_PATH" \
+               "$(DESTDIR)$(vlclibdir)/vlc-cache-gen$(EXEEXT)" \
+                        "$(DESTDIR)$(vlclibdir)/plugins" ; \
        else \
-               echo "Staged installation: cache generation skipped!" ; \
+               echo "Cross-compilation: cache generation skipped!" ; \
        fi