]> git.sesse.net Git - vlc/commitdiff
contrib: With using-bin target, make sure we don't redo the work more than needed.
authorPierre d'Herbemont <pdherbemont@free.fr>
Thu, 31 Dec 2009 16:55:10 +0000 (17:55 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Thu, 31 Dec 2009 16:55:10 +0000 (17:55 +0100)
extras/contrib/Makefile

index c124701bfe32e3ff80308a3ed52a45c43113dfff..7ccc993d9b8b85d50b93f00a18db07a6ba73ac12 100644 (file)
@@ -52,7 +52,7 @@ CONTRIBREV=22
 contrib-macosx-$(ARCH)-$(CONTRIBREV).tar.bz2:
        $(WGET) http://downloads.videolan.org/pub/videolan/testing/contrib/$@
 
-using-bin: contrib-macosx-$(ARCH)-$(CONTRIBREV).tar.bz2
+hosts/$(HOST)/.$(CONTRIBREV): contrib-macosx-$(ARCH)-$(CONTRIBREV).tar.bz2
        @if test -d tmp; then \
                echo "Move away ./tmp, it's in the way" ; \
                exit 1 ; \
@@ -70,6 +70,10 @@ ifdef HAVE_DARWIN_10
        (cd $(PREFIX)/lib && sed -e 's%/usr/lib/libiconv.la%$(PREFIX)/lib/libiconv.la%g' -i.orig *.la && rm -f *.la.orig)
        (cd src && $(MAKE) .iconv)
 endif
+       touch hosts/$(HOST)/.$(CONTRIBREV)
+
+using-bin: hosts/$(HOST)/.$(CONTRIBREV) 
+
 endif
 
 clean-src: