'make -e' won't be enough since we don't export variables

This commit is contained in:
Laurence Withers 2007-08-15 08:38:31 +00:00
parent 894862ddd6
commit 8e536caf01
2 changed files with 30 additions and 4 deletions

View File

@ -3,8 +3,22 @@ build_target @NAME@
echo "Installing @NAME@ (via Makefile)" echo "Installing @NAME@ (via Makefile)"
export MAKE_OBJDIR="$(pwd)/obj/@NAME@" export MAKE_OBJDIR="$(pwd)/obj/@NAME@"
mkdir -p "${MAKE_OBJDIR}" mkdir -p "${MAKE_OBJDIR}"
do_cmd make -e -C "src/@NAME@/" install
print_success "Done" # @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@ # kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@ # vim: syntax=sh:@VIM_MODELINE@

View File

@ -3,8 +3,20 @@ build_target @NAME@
echo "Building @NAME@ (via Makefile)" echo "Building @NAME@ (via Makefile)"
export MAKE_OBJDIR="$(pwd)/obj/@NAME@" export MAKE_OBJDIR="$(pwd)/obj/@NAME@"
mkdir -p "${MAKE_OBJDIR}" mkdir -p "${MAKE_OBJDIR}"
do_cmd make -e -C "src/@NAME@/" default
print_success "Done" # @TODO@ pass in additional arguments here
make -C "src/@NAME@/" default \
MAKE_OBJDIR="${MAKE_OBJDIR}" \
CC="${CC}" \
CFLAGS="${CFLAGS}"
if [ "$?" -eq 0 ]
then
print_success "Done"
else
print_failure "Make failed"
exit 1
fi
# kate: @KATE_MODELINE@ # kate: @KATE_MODELINE@
# vim: syntax=sh:@VIM_MODELINE@ # vim: syntax=sh:@VIM_MODELINE@