lw-build-system/scripts/build.make.none/build.install-make

25 lines
501 B
Bash

build_target @NAME@
echo "Installing @NAME@ (via Makefile)"
export MAKE_OBJDIR="$(pwd)/obj/@NAME@"
mkdir -p "${MAKE_OBJDIR}"
# @TODO@ pass additional flags here
make -C "src/@NAME@/" install \
MAKE_OBJDIR="${MAKE_OBJDIR}" \
INSTALL_PREFIX="${INSTALL_PREFIX}" \
PREFIX="${PREFIX}" \
BINDIR="${BINDIR}" \
LIBDIR="${LIBDIR}"
if [ "$?" -eq 0 ]
then
print_success "Done"
else
print_failure "Make failed"
exit 1
fi
# kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@