From ec3b1ec3851d71bdbd69c1f02f6ea099d6bed6cc Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 22 Aug 2014 12:24:08 +0200 Subject: [PATCH] (libretro-build-common.sh) Refactor build_libretro_dinothawr --- libretro-build-common.sh | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/libretro-build-common.sh b/libretro-build-common.sh index 7ebd3602..45db3980 100755 --- a/libretro-build-common.sh +++ b/libretro-build-common.sh @@ -468,6 +468,10 @@ build_libretro_snes9x_next() { build_libretro_generic_makefile_rootdir "snes9x_next" "Makefile.libretro" ${FORMAT_COMPILER_TARGET_ALT} } +build_libretro_dinothawr() { + build_libretro_generic_makefile_rootdir "dinothawr" "Makefile" ${FORMAT_COMPILER_TARGET_ALT} +} + build_libretro_genplus() { cd "${BASE_DIR}" if [ -d 'libretro-genplus' ]; then @@ -691,21 +695,6 @@ build_libretro_prboom() { fi } -build_libretro_dinothawr() { - cd "${BASE_DIR}" - if [ -d 'libretro-dinothawr' ]; then - echo '=== Building Dinothawr ===' - cd libretro-dinothawr - - if [ -z "${NOCLEAN}" ]; then - "${MAKE}" platform="${FORMAT_COMPILER_TARGET_ALT}" ${COMPILER} "-j${JOBS}" clean || die 'Failed to clean Dinothawr' - fi - "${MAKE}" platform="${FORMAT_COMPILER_TARGET_ALT}" ${COMPILER} "-j${JOBS}" || die 'Failed to build Dinothawr' - cp "dinothawr_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}" - else - echo 'Dinothawr not fetched, skipping ...' - fi -} build_libretro_meteor() { cd "${BASE_DIR}"