Mercurial > emacs
diff mac/make-package @ 47782:de56ca3f523d
make-package: Now calls make bootstrap if .elc files are missing
author | Steven Tamm <steventamm@mac.com> |
---|---|
date | Mon, 07 Oct 2002 20:36:24 +0000 |
parents | e3a0f935c9c5 |
children | 5db3fc34243e |
line wrap: on
line diff
--- a/mac/make-package Mon Oct 07 16:50:43 2002 +0000 +++ b/mac/make-package Mon Oct 07 20:36:24 2002 +0000 @@ -62,7 +62,7 @@ ac_prev=prefix ;; -p=* | -prefix=* | --p=* | --prefix=*) prefix=`expr "x$1" : 'x[^=]*=\(.*\)'` ;; - -no-configure | -no-conf | --no-configure | --no-conf) + -no-configure | -no-conf | --no-configure | --no-conf | --without-config) with_config=no ;; -with-x | --with-x) config_options= ;; @@ -174,7 +174,19 @@ (cd ..; ./configure ${config_options} --prefix=${prefix};) fi -(cd ..; make install prefix=${tempparentfull}${prefix}) +## Make bootstrap if .elc files are missing from distribution +if [ ! -f ../lisp/abbrev.elc ]; then + echo "Required .elc files missing; making bootstrap..." + if ! (cd ..; make bootstrap prefix=${tempparentfull}${prefix}); then + echo "Make bootstrap failed... Aborting make-package." + exit 2 + fi +fi + +if ! (cd ..; make install prefix=${tempparentfull}${prefix}); then + echo "Make failed... Aborting make-package." + exit 1 +fi ### This trap ensures that the staging directory will be cleaned up even ### when the script is interrupted in mid-career.