aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Fox1993-09-20 13:47:22 +0000
committerBrian Fox1993-09-20 13:47:22 +0000
commit4b52e0b4ec3ce9523a8bccd3ce95678ee25ddff5 (patch)
tree6a7d992f0427eb42cb3828be715cb5aa0915d25d
parentdce3d8a95ce4ca9802ad83d8d9d09c27028649e6 (diff)
downloademacs-4b52e0b4ec3ce9523a8bccd3ce95678ee25ddff5.tar.gz
emacs-4b52e0b4ec3ce9523a8bccd3ce95678ee25ddff5.zip
(do-install): Don't abort if ln or chmod at the end
of the installation fail. Suggested by Karl Berry. (*clean): Use "$(MAKE) $(MAKEFLAGS)" wherever "make" was used. Set MAKEFLAGS from MFLAGS.
-rw-r--r--Makefile.in65
1 files changed, 33 insertions, 32 deletions
diff --git a/Makefile.in b/Makefile.in
index b6cfb14c550..b78b1a8447d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -186,6 +186,7 @@ INSTALL_DATA = @INSTALL_DATA@
186 186
187# Flags passed down to subdirectory makefiles. 187# Flags passed down to subdirectory makefiles.
188MFLAGS = 188MFLAGS =
189MAKEFLAGS = $(MFLAGS)
189 190
190# Subdirectories to make recursively. `lisp' is not included 191# Subdirectories to make recursively. `lisp' is not included
191# because the compiled lisp files are part of the distribution 192# because the compiled lisp files are part of the distribution
@@ -232,7 +233,7 @@ lib-src: FRC.lib-src
232.RECURSIVE: ${SUBDIR} 233.RECURSIVE: ${SUBDIR}
233 234
234${SUBDIR}: ${SUBDIR_MAKEFILES} FRC 235${SUBDIR}: ${SUBDIR_MAKEFILES} FRC
235 cd $@; $(MAKE) all ${MFLAGS} \ 236 cd $@; $(MAKE) all ${MAKEFLAGS} \
236 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \ 237 CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}' \
237 prefix='${prefix}' srcdir='${srcdir}/$@' libdir='${libdir}' 238 prefix='${prefix}' srcdir='${srcdir}/$@' libdir='${libdir}'
238 239
@@ -332,7 +333,7 @@ install: all do-install
332### as well as lots of things from ${srcdir}/etc. 333### as well as lots of things from ${srcdir}/etc.
333do-install: mkdir 334do-install: mkdir
334 (cd lib-src; \ 335 (cd lib-src; \
335 $(MAKE) install ${MFLAGS} prefix=${prefix} \ 336 $(MAKE) install ${MAKEFLAGS} prefix=${prefix} \
336 exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \ 337 exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \
337 archlibdir=${archlibdir}) 338 archlibdir=${archlibdir})
338 -set ${COPYDESTS} ; \ 339 -set ${COPYDESTS} ; \
@@ -375,9 +376,9 @@ do-install: mkdir
375 ${INSTALL_DATA} $${page}.1 ${mandir}/$${page}${manext} ; \ 376 ${INSTALL_DATA} $${page}.1 ${mandir}/$${page}${manext} ; \
376 done 377 done
377 ${INSTALL_PROGRAM} src/emacs ${bindir}/emacs-${version} 378 ${INSTALL_PROGRAM} src/emacs ${bindir}/emacs-${version}
378 chmod 1755 ${bindir}/emacs-${version} 379 -chmod 1755 ${bindir}/emacs-${version}
379 rm -f ${bindir}/emacs 380 rm -f ${bindir}/emacs
380 ln ${bindir}/emacs-${version} ${bindir}/emacs 381 -ln ${bindir}/emacs-${version} ${bindir}/emacs
381 382
382### Build all the directories we're going to install Emacs in. Since 383### Build all the directories we're going to install Emacs in. Since
383### we may be creating several layers of directories (for example, 384### we may be creating several layers of directories (for example,
@@ -396,7 +397,7 @@ mkdir: FRC.mkdir
396### Don't delete the lisp and etc directories if they're in the source tree. 397### Don't delete the lisp and etc directories if they're in the source tree.
397uninstall: 398uninstall:
398 (cd lib-src; \ 399 (cd lib-src; \
399 $(MAKE) ${MFLAGS} uninstall \ 400 $(MAKE) ${MAKEFLAGS} uninstall \
400 prefix=${prefix} exec_prefix=${exec_prefix} \ 401 prefix=${prefix} exec_prefix=${exec_prefix} \
401 bindir=${bindir} libdir=${libdir} archlibdir=${archlibdir}) 402 bindir=${bindir} libdir=${libdir} archlibdir=${archlibdir})
402 for dir in ${lispdir} ${etcdir} ; do \ 403 for dir in ${lispdir} ${etcdir} ; do \
@@ -428,10 +429,10 @@ FRC.mostlyclean FRC.clean FRC.distclean FRC.realclean:
428### target for GCC does not delete `libgcc.a', because recompiling it 429### target for GCC does not delete `libgcc.a', because recompiling it
429### is rarely necessary and takes a lot of time. 430### is rarely necessary and takes a lot of time.
430mostlyclean: FRC.mostlyclean 431mostlyclean: FRC.mostlyclean
431 (cd src; $(MAKE) ${MFLAGS} mostlyclean) 432 (cd src; $(MAKE) ${MAKEFLAGS} mostlyclean)
432 (cd oldXMenu; $(MAKE) ${MFLAGS} mostlyclean) 433 (cd oldXMenu; $(MAKE) ${MAKEFLAGS} mostlyclean)
433 (cd lib-src; $(MAKE) ${MFLAGS} mostlyclean) 434 (cd lib-src; $(MAKE) ${MAKEFLAGS} mostlyclean)
434 (cd man; $(MAKE) ${MFLAGS} mostlyclean) 435 (cd man; $(MAKE) ${MAKEFLAGS} mostlyclean)
435 436
436### `clean' 437### `clean'
437### Delete all files from the current directory that are normally 438### Delete all files from the current directory that are normally
@@ -442,10 +443,10 @@ mostlyclean: FRC.mostlyclean
442### 443###
443### Delete `.dvi' files here if they are not part of the distribution. 444### Delete `.dvi' files here if they are not part of the distribution.
444clean: FRC.clean 445clean: FRC.clean
445 (cd src; $(MAKE) ${MFLAGS} clean) 446 (cd src; $(MAKE) ${MAKEFLAGS} clean)
446 (cd oldXMenu; $(MAKE) ${MFLAGS} clean) 447 (cd oldXMenu; $(MAKE) ${MAKEFLAGS} clean)
447 (cd lib-src; $(MAKE) ${MFLAGS} clean) 448 (cd lib-src; $(MAKE) ${MAKEFLAGS} clean)
448 (cd man; $(MAKE) ${MFLAGS} clean) 449 (cd man; $(MAKE) ${MAKEFLAGS} clean)
449 450
450### `distclean' 451### `distclean'
451### Delete all files from the current directory that are created by 452### Delete all files from the current directory that are created by
@@ -458,10 +459,10 @@ top_distclean=\
458 rm -f Makefile ${SUBDIR_MAKEFILES} ; \ 459 rm -f Makefile ${SUBDIR_MAKEFILES} ; \
459 (cd lock ; rm -f *) 460 (cd lock ; rm -f *)
460distclean: FRC.distclean 461distclean: FRC.distclean
461 (cd src; $(MAKE) ${MFLAGS} distclean) 462 (cd src; $(MAKE) ${MAKEFLAGS} distclean)
462 (cd oldXMenu; $(MAKE) ${MFLAGS} distclean) 463 (cd oldXMenu; $(MAKE) ${MAKEFLAGS} distclean)
463 (cd lib-src; $(MAKE) ${MFLAGS} distclean) 464 (cd lib-src; $(MAKE) ${MAKEFLAGS} distclean)
464 (cd man; $(MAKE) ${MFLAGS} distclean) 465 (cd man; $(MAKE) ${MAKEFLAGS} distclean)
465 ${top_distclean} 466 ${top_distclean}
466 467
467 468
@@ -477,10 +478,10 @@ distclean: FRC.distclean
477### anything that needs to exist in order to run `configure' and then 478### anything that needs to exist in order to run `configure' and then
478### begin to build the program. 479### begin to build the program.
479realclean: FRC.realclean 480realclean: FRC.realclean
480 (cd src; $(MAKE) ${MFLAGS} realclean) 481 (cd src; $(MAKE) ${MAKEFLAGS} realclean)
481 (cd oldXMenu; $(MAKE) ${MFLAGS} realclean) 482 (cd oldXMenu; $(MAKE) ${MAKEFLAGS} realclean)
482 (cd lib-src; $(MAKE) ${MFLAGS} realclean) 483 (cd lib-src; $(MAKE) ${MAKEFLAGS} realclean)
483 (cd man; $(MAKE) ${MFLAGS} realclean) 484 -(cd man; $(MAKE) ${MAKEFLAGS} realclean)
484 ${top_distclean} 485 ${top_distclean}
485 486
486### This doesn't actually appear in the coding standards, but Karl 487### This doesn't actually appear in the coding standards, but Karl
@@ -488,7 +489,7 @@ realclean: FRC.realclean
488### the coding standards seem to come from. It's like distclean, but 489### the coding standards seem to come from. It's like distclean, but
489### it deletes backup and autosave files too. 490### it deletes backup and autosave files too.
490extraclean: 491extraclean:
491 for i in ${SUBDIR}; do (cd $$i; $(MAKE) ${MFLAGS} extraclean); done 492 for i in ${SUBDIR}; do (cd $$i; $(MAKE) ${MAKEFLAGS} extraclean); done
492 -(cd lock; rm *) 493 -(cd lock; rm *)
493 -rm config.status config-tmp-* 494 -rm config.status config-tmp-*
494 -rm -f *~ \#* 495 -rm -f *~ \#*
@@ -509,24 +510,24 @@ SOURCES = ChangeLog GETTING.GNU.SOFTWARE INSTALL Makefile.in PROBLEMS \
509unlock: 510unlock:
510 chmod u+w $(SOURCES) cpp/* 511 chmod u+w $(SOURCES) cpp/*
511 -(cd elisp; chmod u+w Makefile README *.texi) 512 -(cd elisp; chmod u+w Makefile README *.texi)
512 (cd etc; $(MAKE) unlock) 513 (cd etc; $(MAKE) $(MAKEFLAGS) unlock)
513 (cd lib-src; $(MAKE) unlock) 514 (cd lib-src; $(MAKE) $(MAKEFLAGS) unlock)
514 (cd lisp; $(MAKE) unlock) 515 (cd lisp; $(MAKE) $(MAKEFLAGS) unlock)
515 (cd lisp/term; chmod u+w README *.el) 516 (cd lisp/term; chmod u+w README *.el)
516 (cd man; chmod u+w *texi* ChangeLog split-man) 517 (cd man; chmod u+w *texi* ChangeLog split-man)
517 (cd oldXMenu; chmod u+w *.[ch] Makefile README) 518 (cd oldXMenu; chmod u+w *.[ch] Makefile README)
518 (cd src; $(MAKE) unlock) 519 (cd src; $(MAKE) $(MAKEFLAGS) unlock)
519 520
520relock: 521relock:
521 chmod u-w $(SOURCES) cpp/* 522 chmod u-w $(SOURCES) cpp/*
522 -(cd elisp; chmod u-w Makefile README *.texi) 523 -(cd elisp; chmod u-w Makefile README *.texi)
523 (cd etc; $(MAKE) relock) 524 (cd etc; $(MAKE) $(MAKEFLAGS) relock)
524 (cd lib-src; $(MAKE) relock) 525 (cd lib-src; $(MAKE) $(MAKEFLAGS) relock)
525 (cd lisp; $(MAKE) relock) 526 (cd lisp; $(MAKE) $(MAKEFLAGS) relock)
526 (cd lisp/term; chmod u+w README *.el) 527 (cd lisp/term; chmod u+w README *.el)
527 (cd man; chmod u+w *texi* ChangeLog split-man) 528 (cd man; chmod u+w *texi* ChangeLog split-man)
528 (cd oldXMenu; chmod u+w *.[ch] Makefile README) 529 (cd oldXMenu; chmod u+w *.[ch] Makefile README)
529 (cd src; $(MAKE) relock) 530 (cd src; $(MAKE) $(MAKEFLAGS) relock)
530 531
531TAGS tags: lib-src 532TAGS tags: lib-src
532 (cd ${srcdir}/src; \ 533 (cd ${srcdir}/src; \
@@ -539,6 +540,6 @@ dist:
539 cd ${srcdir}; make-dist 540 cd ${srcdir}; make-dist
540 541
541info: 542info:
542 (cd ${srcdir}/man; $(MAKE) ${MFLAGS} info) 543 (cd ${srcdir}/man; $(MAKE) ${MAKEFLAGS} info)
543dvi: 544dvi:
544 (cd ${srcdir}/man; $(MAKE) ${MFLAGS} dvi) 545 (cd ${srcdir}/man; $(MAKE) ${MAKEFLAGS} dvi)