]> code.delx.au - gnu-emacs/commitdiff
make-package: Now calls make bootstrap if .elc files are missing
authorSteven Tamm <steventamm@mac.com>
Mon, 7 Oct 2002 20:36:24 +0000 (20:36 +0000)
committerSteven Tamm <steventamm@mac.com>
Mon, 7 Oct 2002 20:36:24 +0000 (20:36 +0000)
mac/ChangeLog
mac/make-package

index aeac7d8f7bf1e2a75973f81a8fd9b7281a2e8168..36548cce103c8c9c6716757874b76676d9f8afe2 100644 (file)
@@ -1,3 +1,7 @@
+2002-10-07  Steven Tamm  <steventamm@mac.com>
+
+       * make-package: Now calls make bootstrap if .elc files are missing
+
 2002-08-27  Andrew Choi  <akochoi@shaw.ca>
 
        * INSTALL: Add information on starting Emacs as a GUI application
index e4c228ee97cb9b4763eff400825982d83eb5e926..d3eae56a0709aacaaff82aac6d6039bc09e29a1d 100755 (executable)
@@ -62,7 +62,7 @@ do
        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 @@ if test "$with_config" = yes; then
     (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.