make_rpm ()
{
+ run_configure_if_required
make_target 'rpm'
}
eval 'bash -n configure' || die "autoreconf generated a malformed configure"
}
-run ()
+function run ()
{
if $VERBOSE; then
echo "\`$@' $ARGS"
fi
- ($@ $ARGS)
+ eval $@ $ARGS
}
parse_command_line_options ()
if [[ -z "$MAKE" ]]; then
if command_exists gmake; then
MAKE=`type -p gmake`
+ else
+ if command_exists make; then
+ MAKE=`type -p make`
+ fi
fi
-
- if command_exists make; then
- MAKE=`type -p make`
+
+ if $DEBUG; then
+ MAKE="$MAKE --warn-undefined-variables"
fi
fi
;;
'configure')
;;
+ 'rpm')
+ ;;
'snapshot')
;;
'valgrind')
'snapshot')
make_for_snapshot
;;
+ 'rpm')
+ make_rpm
+ ;;
'valgrind')
make_valgrind
;;