[vlc-commits] contrib: fix regex installation

Rafaël Carré git at videolan.org
Fri Jan 4 11:47:07 CET 2013


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Fri Jan  4 11:46:11 2013 +0100| [9e2145a2b4ac018c8658db5c8558bcdfb78eec72] | committer: Rafaël Carré

contrib: fix regex installation

If regex was the first package installed it would create include
and lib files, instead of include/regex.h and lib/libregex.a

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

 contrib/src/regex/rules.mak |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/contrib/src/regex/rules.mak b/contrib/src/regex/rules.mak
index 9ba38cd..a972c76 100644
--- a/contrib/src/regex/rules.mak
+++ b/contrib/src/regex/rules.mak
@@ -19,5 +19,7 @@ regex: regex-$(REGEX_VERSION).tar.gz .sum-regex
 .regex: regex
 	cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
 	cd $< && $(MAKE) subirs=
-	cd $< && $(AR) rcvu libregex.a regex.o && $(RANLIB) libregex.a && cp -v regex.h $(PREFIX)/include && cp -v libregex.a $(PREFIX)/lib
+	cd $< && $(AR) rcvu libregex.a regex.o && $(RANLIB) libregex.a
+	mkdir -p $(PREFIX)/include/ && cp $</regex.h $(PREFIX)/include/
+	mkdir -p $(PREFIX)/lib/ && cp $</libregex.a $(PREFIX)/lib/
 	touch $@



More information about the vlc-commits mailing list