2007-08-14 22:16:29 +01:00
|
|
|
build_target @NAME@
|
|
|
|
|
|
|
|
echo "Building @NAME@ (via Makefile)"
|
|
|
|
export MAKE_OBJDIR="$(pwd)/obj/@NAME@"
|
|
|
|
mkdir -p "${MAKE_OBJDIR}"
|
2007-08-15 09:38:31 +01:00
|
|
|
|
|
|
|
# @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
|
2007-08-14 22:16:29 +01:00
|
|
|
|
|
|
|
# kate: @KATE_MODELINE@
|
|
|
|
# vim: syntax=sh:@VIM_MODELINE@
|