aboutsummaryrefslogtreecommitdiffstats
path: root/mac/make-package
diff options
context:
space:
mode:
Diffstat (limited to 'mac/make-package')
-rwxr-xr-xmac/make-package15
1 files changed, 9 insertions, 6 deletions
diff --git a/mac/make-package b/mac/make-package
index d6e0b66cc94..c6639eee56c 100755
--- a/mac/make-package
+++ b/mac/make-package
@@ -270,16 +270,23 @@ if test "$self_contained" = "yes"; then
270 installprefix=$tempparentfull/$appsdir/$emapp/Contents/Resources 270 installprefix=$tempparentfull/$appsdir/$emapp/Contents/Resources
271fi 271fi
272 272
273
274make_options="prefix=${installprefix} $make_options"
275
276if test "$with_app" = "yes"; then
277 make_options="carbon_appdir=${tempparentfull}/Applications $make_options"
278fi
279
273## Make bootstrap if .elc files are missing from distribution 280## Make bootstrap if .elc files are missing from distribution
274if [ ! -f ${srcdir}/lisp/abbrev.elc ]; then 281if [ ! -f ${srcdir}/lisp/abbrev.elc ]; then
275 echo "Required .elc files missing; making bootstrap..." 282 echo "Required .elc files missing; making bootstrap..."
276 if ! (cd ${builddir}; make bootstrap prefix=$installprefix $make_options); then 283 if ! (cd ${builddir}; make bootstrap $make_options); then
277 echo "Make bootstrap failed... Aborting make-package." 284 echo "Make bootstrap failed... Aborting make-package."
278 exit 2 285 exit 2
279 fi 286 fi
280fi 287fi
281 288
282if ! (cd ${builddir}; make install prefix=$installprefix $make_options); then 289if ! (cd ${builddir}; make install $make_options); then
283 echo "Make failed... Aborting make-package." 290 echo "Make failed... Aborting make-package."
284 exit 1 291 exit 1
285fi 292fi
@@ -294,10 +301,6 @@ if test "$with_app" == "yes"; then
294 echo "Creating Emacs.app application" 301 echo "Creating Emacs.app application"
295 tempappdir=${tempparentfull}${appsdir} 302 tempappdir=${tempparentfull}${appsdir}
296 tempemapp=${tempappdir}/${emapp}/Contents/MacOS/Emacs 303 tempemapp=${tempappdir}/${emapp}/Contents/MacOS/Emacs
297 mkdir ${tempappdir}
298
299 ## Copy Emacs application
300 cp -r ${builddir}/mac/Emacs.app ${tempappdir}
301 ## Delete any CVS files 304 ## Delete any CVS files
302 find ${tempappdir} -name "CVS" -type d -exec rm -rf {} \; 305 find ${tempappdir} -name "CVS" -type d -exec rm -rf {} \;
303 306