[vlc-commits] Tools: create directories before cp into them

Jean-Baptiste Kempf git at videolan.org
Fri Oct 17 10:50:59 CEST 2014


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Oct 17 10:46:56 2014 +0200| [ccbf5bcd26e6e77dbf43cd55a50cb145aca15b67] | committer: Jean-Baptiste Kempf

Tools: create directories before cp into them

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ccbf5bcd26e6e77dbf43cd55a50cb145aca15b67
---

 extras/tools/tools.mak |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/extras/tools/tools.mak b/extras/tools/tools.mak
index 2553413..e204420 100644
--- a/extras/tools/tools.mak
+++ b/extras/tools/tools.mak
@@ -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



More information about the vlc-commits mailing list