X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=bootstrap.sh;h=40b2829989f5d8de55f7f64d1194c0828168a612;hb=ba81704be4d44bfd31125ecc7c30b429018a996f;hp=c46f1eaf524ad0c517f19e7109c8290a9b2a3551;hpb=feded1b9d9b6aa51c68fd3d076408a516b1a31aa;p=awesomized%2Flibmemcached diff --git a/bootstrap.sh b/bootstrap.sh index c46f1eaf..40b28299 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -637,6 +637,7 @@ make_distcheck () make_rpm () { + run_configure_if_required make_target 'rpm' } @@ -687,13 +688,13 @@ run_autoreconf () 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 () @@ -769,10 +770,14 @@ autoreconf_setup () 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 @@ -954,6 +959,8 @@ check_make_target() ;; 'configure') ;; + 'rpm') + ;; 'snapshot') ;; 'valgrind') @@ -1036,6 +1043,9 @@ bootstrap () 'snapshot') make_for_snapshot ;; + 'rpm') + make_rpm + ;; 'valgrind') make_valgrind ;;