]> git.sesse.net Git - vlc/commitdiff
contrib: do not create host directories from bootstrap
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 6 Jul 2011 09:18:06 +0000 (12:18 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 6 Jul 2011 15:53:19 +0000 (18:53 +0300)
'make clean' removes those, so there is no point in creating them from
bootstrap. $(RECONF) takes care of this better already for aclocal.
Otherwise, install targets should deal with this.

contrib/bootstrap

index 024ead91a22dcbca2dc67a66be84544e9c0b59ac..d2796668112b2b2dcc89ccc55575525267c4e4b1 100755 (executable)
@@ -103,17 +103,11 @@ if test "$PREFIX"
 then
        # strip trailing slash
        PREFIX="${PREFIX%/}"
-else
-       PREFIX="../hosts/$HOST"
 fi
 
 #
 # Prepare files
 #
-echo "Creating prefix... $PREFIX"
-mkdir -p -- "$PREFIX" || exit $?
-mkdir -p -- "$PREFIX/share/aclocal" || exit $?
-
 echo "Creating configuration file... config.mak"
 exec 3>config.mak
 cat >&3 << EOF
@@ -121,7 +115,6 @@ cat >&3 << EOF
 # Any change will be overwritten if ../bootstrap is run again.
 BUILD := $BUILD
 HOST := $HOST
-PREFIX := $PREFIX
 PKGS_DISABLE := $PKGS_DISABLE
 PKGS_ENABLE := $PKGS_ENABLE
 EOF
@@ -144,6 +137,7 @@ add_make_enabled()
        done
 }
 
+test -z "$PREFIX" || add_make "PREFIX := $PREFIX"
 test -z "$BUILD_DISCS" || add_make_enabled "BUILD_DISCS"
 test -z "$BUILD_ENCODERS" || add_make_enabled "BUILD_ENCODERS"