2007-08-14 22:16:29 +01:00
|
|
|
build_target @NAME@
|
|
|
|
|
|
|
|
echo "Installing @NAME@ (via Makefile)"
|
|
|
|
export MAKE_OBJDIR="$(pwd)/obj/@NAME@"
|
|
|
|
mkdir -p "${MAKE_OBJDIR}"
|
2007-08-15 09:38:31 +01:00
|
|
|
|
2008-03-01 17:01:45 +00:00
|
|
|
# @TODO@ pass in additional arguments here (in particular CFLAGS and LDLIBS)
|
|
|
|
VPATH="$(pwd)/src/@NAME@" \
|
|
|
|
make -f "$(pwd)/src/@NAME@/Makefile" \
|
|
|
|
-C "${MAKE_OBJDIR}" \
|
2007-08-15 09:38:31 +01:00
|
|
|
MAKE_OBJDIR="${MAKE_OBJDIR}" \
|
|
|
|
INSTALL_PREFIX="${INSTALL_PREFIX}" \
|
|
|
|
PREFIX="${PREFIX}" \
|
|
|
|
BINDIR="${BINDIR}" \
|
2008-03-01 17:01:45 +00:00
|
|
|
SBINDIR="${SBINDIR}" \
|
|
|
|
LIBDIR="${LIBDIR}" \
|
|
|
|
CGIDIR="${CGIDIR}" \
|
|
|
|
WEBDIR="${WEBDIR}" \
|
|
|
|
SHAREDIR="${SHAREDIR}" \
|
|
|
|
CC="${CC}" \
|
|
|
|
CFLAGS="${CFLAGS}" \
|
|
|
|
LDLIBS="${LDLIBS}" \
|
|
|
|
install
|
2007-08-15 09:38:31 +01:00
|
|
|
|
|
|
|
if [ "$?" -eq 0 ]
|
|
|
|
then
|
|
|
|
print_success "Done"
|
|
|
|
else
|
|
|
|
print_failure "Make failed"
|
|
|
|
exit 1
|
|
|
|
fi
|
2007-08-14 22:16:29 +01:00
|
|
|
|
|
|
|
# vim: syntax=sh:@VIM_MODELINE@
|