]> git.sesse.net Git - vlc/commitdiff
Tools: create directories before cp into them
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 17 Oct 2014 08:46:56 +0000 (10:46 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 17 Oct 2014 08:50:49 +0000 (10:50 +0200)
extras/tools/tools.mak

index 2553413772d57d65784a5fbe8ef51bdbb506de28..e204420ffba04ad21f857e723e390956edc4e408 100644 (file)
@@ -206,7 +206,8 @@ gas: gas-preprocessor-$(GAS_VERSION).tar.gz
        $(MOVE)
 
 .gas: gas
-       cp gas/gas-preprocessor.pl build/bin/
+       mkdir -p $(PREFIX)/bin
+       cp gas/gas-preprocessor.pl $(PREFIX)/build/bin/
        touch $@
 
 CLEAN_FILE += .gas
@@ -258,7 +259,8 @@ ant: apache-ant-$(ANT_VERSION).tar.bz2
        $(MOVE)
 
 .ant: ant
-       (cp $</bin/* build/bin/; cp $</lib/* build/lib/)
+       mkdir -p $(PREFIX)/bin
+       (cp $</bin/* $(PREFIX)/bin/ && cp $</lib/* $(PREFIX)/lib/)
        touch $@
 
 CLEAN_PKG += ant