1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-21 06:55:39 +00:00
This commit is contained in:
Gregory Heytings 2022-09-19 09:38:58 +02:00
parent 60de98f6f0
commit 5a8e2dedf5

View File

@ -380,30 +380,26 @@ bootstrap-all:
actual-all: ${SUBDIR} info $(gsettings_SCHEMAS:.xml=.valid) src-depending-on-lisp
# ADVICE-ON-FAILURE-BEGIN:all
# It can help to run "make bootstrap", which can resolve many build
# failures caused by incrementally building from a previously built
# checkout.
# Failing that, running "make V=1" will cause Make to display the full
# commands it invokes to build Emacs, which helps to investigate the
# problem.
# You might try to:
# - run "make bootstrap", which might fix the problem
# - run "make V=1", which displays the full commands invoked by make,
#   to further investigate the problem
# ADVICE-ON-FAILURE-END:all
# ADVICE-ON-FAILURE-BEGIN:bootstrap
# If "make bootstrap" failed, try running "make extraclean" and then
# "make bootstrap" again. If that still fails and you are building
# Emacs from a repository checkout, run "git clean -fdx" and retry
# "make bootstrap". Otherwise, please report a bug by sending email
# to bug-gnu-emacs@gnu.org.
#
# Take care: "git clean -fdx" deletes all files that are not under
# version control, which means that all changes to such files will be
# lost and cannot be restored later.
# You might try to:
# - run "git clean -fdx" and run "make bootstrap" again, which might
#   fix the problem
#   !BEWARE! "git clean -fdx" deletes all files that are not under
#   !BEWARE! version control, which means that all changes to such
#   !BEWARE! files will be lost and cannot be restored later
# - run "make V=1", which displays the full commands invoked by make,
#   to further investigate the problem
# ADVICE-ON-FAILURE-END:bootstrap
advice-on-failure:
@echo
@echo "make ${make-target}\" failed with exit status ${exit-status}."
@echo " \"make ${make-target}\" failed with exit status ${exit-status}."
@cat Makefile | \
sed -n '/^# ADVICE-ON-FAILURE-BEGIN:${make-target}/,$${p;/^# ADVICE-ON-FAILURE-END:${make-target}/q};' | \
sed 's/^# //' | grep -v '^ADVICE-ON-FAILURE-'