]> git.sesse.net Git - vlc/commitdiff
Contribs: automatically remove ELF binaries from prebuilt on Win32
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 20 Feb 2015 14:18:01 +0000 (15:18 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 20 Feb 2015 14:18:01 +0000 (15:18 +0100)
contrib/src/main.mak

index a3b98c0793f0132655639e413334d12258168beb..b3a0ada8d3f57c1aaf19ef5f1bf7bda81123fd5c 100644 (file)
@@ -384,6 +384,12 @@ vlc-contrib-$(HOST)-latest.tar.bz2:
 
 prebuilt: vlc-contrib-$(HOST)-latest.tar.bz2
        -$(UNPACK)
+ifdef HAVE_WIN32
+ifndef HAVE_CROSS_COMPILE
+       $(RM) `find $(HOST) | file -f- | grep ELF | awk -F: '{print $1}' | xargs`
+endif
+endif
+       $(RM) -r $(TOPDST)/$(HOST)
        mv $(HOST) $(TOPDST)
        cd $(TOPDST)/$(HOST) && $(SRC)/change_prefix.sh