adding NOCLEAN support for bsnes builds

striving for more efficient incremental builds...I missed these previously since they don't use `make clean`
This commit is contained in:
l3iggs 2014-08-08 13:28:17 -07:00
parent 4ad019f596
commit c9289945f6

View File

@ -1015,8 +1015,10 @@ build_libretro_bsnes_mercury() {
if [ -d 'libretro-bsnes-mercury/perf' ]; then
echo '=== Building bSNES Mercury performance ==='
cd libretro-bsnes-mercury/perf
rm -f obj/*.{o,"${FORMAT_EXT}"}
if [ -z "${NOCLEAN}" ]; then
rm -f obj/*.{o,"${FORMAT_EXT}"}
fi
"${MAKE}" -f Makefile platform="${FORMAT_COMPILER_TARGET}" compiler="${CXX11}" ui='target-libretro' profile='performance' "-j${JOBS}" || die 'Failed to build bSNES Mercury performance core'
cp -f "out/bsnes_mercury_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/bsnes_mercury_performance_libretro${FORMAT}.${FORMAT_EXT}"
else
@ -1027,8 +1029,10 @@ build_libretro_bsnes_mercury() {
if [ -d 'libretro-bsnes-mercury/balanced' ]; then
echo '=== Building bSNES Mercury balanced ==='
cd libretro-bsnes-mercury/balanced
rm -f obj/*.{o,"${FORMAT_EXT}"}
if [ -z "${NOCLEAN}" ]; then
rm -f obj/*.{o,"${FORMAT_EXT}"}
fi
"${MAKE}" -f Makefile platform="${FORMAT_COMPILER_TARGET}" compiler="${CXX11}" ui='target-libretro' profile='balanced' "-j${JOBS}" || die 'Failed to build bSNES Mercury balanced core'
cp -f "out/bsnes_mercury_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/bsnes_mercury_balanced_libretro${FORMAT}.${FORMAT_EXT}"
else
@ -1039,8 +1043,10 @@ build_libretro_bsnes_mercury() {
if [ -d 'libretro-bsnes-mercury' ]; then
echo '=== Building bSNES Mercury accuracy ==='
cd libretro-bsnes-mercury
rm -f obj/*.{o,"${FORMAT_EXT}"}
if [ -z "${NOCLEAN}" ]; then
rm -f obj/*.{o,"${FORMAT_EXT}"}
fi
"${MAKE}" -f Makefile platform="${FORMAT_COMPILER_TARGET}" compiler="${CXX11}" ui='target-libretro' profile='accuracy' "-j${JOBS}" || die 'Failed to build bSNES Mercury accuracy core'
cp -f "out/bsnes_mercury_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/bsnes_mercury_accuracy_libretro${FORMAT}.${FORMAT_EXT}"
else
@ -1053,8 +1059,10 @@ build_libretro_bsnes() {
if [ -d 'libretro-bsnes/perf' ]; then
echo '=== Building bSNES performance ==='
cd libretro-bsnes/perf
rm -f obj/*.{o,"${FORMAT_EXT}"}
if [ -z "${NOCLEAN}" ]; then
rm -f obj/*.{o,"${FORMAT_EXT}"}
fi
"${MAKE}" -f Makefile platform="${FORMAT_COMPILER_TARGET}" compiler="${CXX11}" ui='target-libretro' profile='performance' "-j${JOBS}" || die 'Failed to build bSNES performance core'
cp -f "out/bsnes_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/bsnes_performance_libretro${FORMAT}.${FORMAT_EXT}"
else
@ -1065,8 +1073,10 @@ build_libretro_bsnes() {
if [ -d 'libretro-bsnes/balanced' ]; then
echo '=== Building bSNES balanced ==='
cd libretro-bsnes/balanced
rm -f obj/*.{o,"${FORMAT_EXT}"}
if [ -z "${NOCLEAN}" ]; then
rm -f obj/*.{o,"${FORMAT_EXT}"}
fi
"${MAKE}" -f Makefile platform="${FORMAT_COMPILER_TARGET}" compiler="${CXX11}" ui='target-libretro' profile='balanced' "-j${JOBS}" || die 'Failed to build bSNES balanced core'
cp -f "out/bsnes_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/bsnes_balanced_libretro${FORMAT}.${FORMAT_EXT}"
else
@ -1077,8 +1087,9 @@ build_libretro_bsnes() {
if [ -d 'libretro-bsnes' ]; then
echo '=== Building bSNES accuracy ==='
cd libretro-bsnes
rm -f obj/*.{o,"${FORMAT_EXT}"}
if [ -z "${NOCLEAN}" ]; then
rm -f obj/*.{o,"${FORMAT_EXT}"}
fi
"${MAKE}" -f Makefile platform="${FORMAT_COMPILER_TARGET}" compiler="${CXX11}" ui='target-libretro' profile='accuracy' "-j${JOBS}" || die 'Failed to build bSNES accuracy core'
cp -f "out/bsnes_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/bsnes_accuracy_libretro${FORMAT}.${FORMAT_EXT}"
else