]> git.sesse.net Git - vlc/commitdiff
Replace a nasty ugly construct with another similar one
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 21 Apr 2008 19:42:55 +0000 (22:42 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 21 Apr 2008 20:06:06 +0000 (23:06 +0300)
Makefile.am

index 1f2b1ce2a7b8fb96b9b048b9b999d9e7916bc9f9..7dfb7bd217b09fce79a1e011a92166a4bbb8daee 100644 (file)
@@ -614,9 +614,9 @@ VLC.app: vlc
                   $(top_builddir)/VLC.app/Contents/MacOS/VLC
        ln -sf ./VLC $(top_builddir)/VLC.app/Contents/MacOS/clivlc
        $(INSTALL) -d $(top_builddir)/VLC.app/Contents/MacOS/modules
-       for i in `$(VLC_CONFIG) --target plugin` ; do \
+       find modules/ -name '*_plugin.$(LIBEXT)' | while read i; do \
          if test -n "$$i" ; \
-          then ln -sfn "`pwd`/`dirname $$i`/.libs/`basename $$i`$(LIBEXT)" \
+          then ln -sfn "`pwd`/$$i" \
                                   "$(top_builddir)/VLC.app/Contents/MacOS/modules" ; \
          fi ; done && \
        ln -sfn `pwd`/$(srcdir)/share $(top_builddir)/VLC.app/Contents/MacOS/
@@ -772,10 +772,9 @@ package-win32-base-debug: package-win-common
 
 # Plugins
        mkdir -p "$(top_builddir)/vlc-$(VERSION)/plugins"
-       for i in "" `$(VLC_CONFIG) --target plugin` ; do \
+       find modules/ -name '*_plugin.$(LIBEXT)' | while read i; do \
          if test -n "$$i" ; then \
-           $(INSTALL) "$(top_builddir)/`dirname $$i`/.libs/`basename $$i`$(LIBEXT)" \
-            "$(top_builddir)/vlc-$(VERSION)/plugins/" ; \
+           $(INSTALL) "$$i" "vlc-$(VERSION)/plugins/" ; \
          fi ; done
 
 if BUILD_SKINS