test.sh: added variable MAKE

The environment variable MAKE can be set by the caller process, and
may be used to pass a concurrency value (-j).
This commit is contained in:
Max Kellermann 2009-04-01 16:34:47 +02:00
parent a3823c7657
commit 7a8bfb8a45

View File

@ -8,6 +8,8 @@
PREFIX=/tmp/mpd PREFIX=/tmp/mpd
rm -rf $PREFIX rm -rf $PREFIX
test "x$MAKE" != x || MAKE=make
export CFLAGS="-Os" export CFLAGS="-Os"
test -x configure || NOCONFIGURE=1 ./autogen.sh test -x configure || NOCONFIGURE=1 ./autogen.sh
@ -17,16 +19,16 @@ test -x configure || NOCONFIGURE=1 ./autogen.sh
--disable-dependency-tracking --enable-debug --enable-werror \ --disable-dependency-tracking --enable-debug --enable-werror \
--enable-un \ --enable-un \
--enable-ao --enable-mod --enable-mvp --enable-ao --enable-mod --enable-mvp
make -j2 install $MAKE install
make distclean $MAKE distclean
# no UN, no oggvorbis, no flac, enable oggflac # no UN, no oggvorbis, no flac, enable oggflac
./configure --prefix=$PREFIX/small \ ./configure --prefix=$PREFIX/small \
--disable-dependency-tracking --enable-debug --enable-werror \ --disable-dependency-tracking --enable-debug --enable-werror \
--disable-un \ --disable-un \
--disable-flac --disable-oggvorbis --enable-oggflac --disable-flac --disable-oggvorbis --enable-oggflac
make -j2 install $MAKE install
make distclean $MAKE distclean
# strip down (disable TCP, disable nearly all plugins) # strip down (disable TCP, disable nearly all plugins)
CFLAGS="$CFLAGS -DNDEBUG" \ CFLAGS="$CFLAGS -DNDEBUG" \
@ -40,8 +42,8 @@ CFLAGS="$CFLAGS -DNDEBUG" \
--disable-ffmpeg --disable-wavpack --disable-mpc --disable-aac \ --disable-ffmpeg --disable-wavpack --disable-mpc --disable-aac \
--disable-flac --disable-oggvorbis --disable-oggflac --disable-audiofile \ --disable-flac --disable-oggvorbis --disable-oggflac --disable-audiofile \
--with-zeroconf=no --with-zeroconf=no
make -j2 install $MAKE install
make distclean $MAKE distclean
# shout: ogg without mp3 # shout: ogg without mp3
./configure --prefix=$PREFIX/shout_ogg \ ./configure --prefix=$PREFIX/shout_ogg \
@ -54,8 +56,8 @@ make distclean
--disable-ffmpeg --disable-wavpack --disable-mpc --disable-aac \ --disable-ffmpeg --disable-wavpack --disable-mpc --disable-aac \
--disable-flac --enable-oggvorbis --disable-oggflac --disable-audiofile \ --disable-flac --enable-oggvorbis --disable-oggflac --disable-audiofile \
--with-zeroconf=no --with-zeroconf=no
make -j2 install $MAKE install
make distclean $MAKE distclean
# shout: mp3 without ogg # shout: mp3 without ogg
./configure --prefix=$PREFIX/shout_mp3 \ ./configure --prefix=$PREFIX/shout_mp3 \
@ -68,8 +70,8 @@ make distclean
--disable-ffmpeg --disable-wavpack --disable-mpc --disable-aac \ --disable-ffmpeg --disable-wavpack --disable-mpc --disable-aac \
--disable-flac --disable-oggvorbis --disable-oggflac --disable-audiofile \ --disable-flac --disable-oggvorbis --disable-oggflac --disable-audiofile \
--with-zeroconf=no --with-zeroconf=no
make -j2 install $MAKE install
make distclean $MAKE distclean
# oggvorbis + oggflac # oggvorbis + oggflac
./configure --prefix=$PREFIX/oggvorbisflac \ ./configure --prefix=$PREFIX/oggvorbisflac \
@ -83,5 +85,5 @@ make distclean
--disable-ffmpeg --disable-wavpack --disable-mpc --disable-aac \ --disable-ffmpeg --disable-wavpack --disable-mpc --disable-aac \
--disable-flac --enable-oggvorbis --enable-oggflac --disable-audiofile \ --disable-flac --enable-oggvorbis --enable-oggflac --disable-audiofile \
--with-zeroconf=no --with-zeroconf=no
make -j2 install $MAKE install
make distclean $MAKE distclean