'make -e' won't be enough since we don't export variables
This commit is contained in:
parent
894862ddd6
commit
8e536caf01
|
@ -3,8 +3,22 @@ build_target @NAME@
|
|||
echo "Installing @NAME@ (via Makefile)"
|
||||
export MAKE_OBJDIR="$(pwd)/obj/@NAME@"
|
||||
mkdir -p "${MAKE_OBJDIR}"
|
||||
do_cmd make -e -C "src/@NAME@/" install
|
||||
|
||||
# @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@
|
||||
|
|
|
@ -3,8 +3,20 @@ build_target @NAME@
|
|||
echo "Building @NAME@ (via Makefile)"
|
||||
export MAKE_OBJDIR="$(pwd)/obj/@NAME@"
|
||||
mkdir -p "${MAKE_OBJDIR}"
|
||||
do_cmd make -e -C "src/@NAME@/" default
|
||||
|
||||
# @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@
|
||||
# vim: syntax=sh:@VIM_MODELINE@
|
||||
|
|
Loading…
Reference in New Issue