File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -419,14 +419,23 @@ _VER="$1"
419419
420420 # Manual copy to DESTDIR
421421
422+ # These custom outputs end up in different directories depending on make tool
423+ if [ "${_MK} " = 'ninja' ]; then
424+ _out_lib=''
425+ _out_src=''
426+ else
427+ _out_lib='lib/'
428+ _out_src='src/'
429+ fi
430+
422431 if [ "${_OS} " = 'win' ]; then
423- cp -p "${_BLDDIR} / ${_DEF_NAME} " "${_PP} "/ bin/
432+ cp -p "${_BLDDIR} / ${_out_lib}${ _DEF_NAME} " "${_PP} "/ bin/
424433 fi
425434
426435 if [ "${CW_MAP} " = '1 ' ]; then
427- cp -p "${_BLDDIR} / ${_MAP_NAME_LIB} " "${_PP} / ${DYN_DIR} / "
436+ cp -p "${_BLDDIR} / ${_out_lib}${ _MAP_NAME_LIB} " "${_PP} / ${DYN_DIR} / "
428437 if [[ "${_CONFIG} " != * 'nocurltool'* ]]; then
429- cp -p "${_BLDDIR} / ${_MAP_NAME_BIN} " "${_PP} "/ bin/
438+ cp -p "${_BLDDIR} / ${_out_src}${ _MAP_NAME_BIN} " "${_PP} "/ bin/
430439 fi
431440 fi
432441
You can’t perform that action at this time.
0 commit comments