aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2017-03-17 11:33:48 -0700
committerPaul Eggert2017-03-17 11:42:34 -0700
commit2f8935099c680f5e25afdf290d351180ee42fa39 (patch)
tree900d6f682b94c4b5f5cfe435fd6910f6ad9b6b3e /src
parent65faa7bcb59421603ed2b6e961fe4b9ea8cb91b9 (diff)
downloademacs-2f8935099c680f5e25afdf290d351180ee42fa39.tar.gz
emacs-2f8935099c680f5e25afdf290d351180ee42fa39.zip
Fixups for GNU Make switchover
This fixes some minor problems introduced in the recent switch to GNU Make, discovered by further testing. Without some of these changes 'make -j' would sometimes have race conditions caused by missing dependencies. (Bug#26100) * .gitignore: Remove src/stamp-h.in, src/stamp-h1. * Makefile.in ($(MAKEFILE_NAME)): Depend on configure, not src/config.in, since the former's timestamp now represents the latter's. ($(srcdir)/configure): Use plain ./autogen.sh, for consistency with other autogen.sh invocations. ($(srcdir)/src/stamp-h.in): Remove rule, as this file is no longer created. * Makefile.in (top_distclean): * src/Makefile.in (bootstrap-clean): No need to remove stamp-h1, as that was an Automake byproduct and Automake is no longer in use. * lib/Makefile.in, src/Makefile.in: (AUTOCONF_INPUTS, $(top_srcdir)/configure): Remove. (../config.status, Makefile): Simplify by limiting dependencies to files we care about and files in the repository, and by using just one file to represent the timestamps on multiple targets updated by the same rule. * autogen.sh: Do not create or use src/stamp-h.in. Instead, have 'find' test the two output files directly.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.in10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index c9147d08bcf..60aa6866718 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -624,14 +624,10 @@ $(oldXMenudir)/libXMenu11.a: FORCE
624FORCE: 624FORCE:
625.PHONY: FORCE 625.PHONY: FORCE
626 626
627AUTOCONF_INPUTS = $(top_srcdir)/configure.ac $(top_srcdir)/m4/*.m4
628$(top_srcdir)/configure config.in: $(AUTOCONF_INPUTS)
629.PRECIOUS: ../config.status Makefile 627.PRECIOUS: ../config.status Makefile
630../config.status: $(top_srcdir)/configure $(top_srcdir)/lisp/version.el 628../config.status: $(top_srcdir)/configure.ac $(top_srcdir)/m4/*.m4
631Makefile: ../config.status $(srcdir)/Makefile.in
632$(top_srcdir)/configure ../config.status:
633 $(MAKE) -C .. $(notdir $@) 629 $(MAKE) -C .. $(notdir $@)
634config.in Makefile: 630Makefile: ../config.status $(srcdir)/Makefile.in
635 $(MAKE) -C .. src/$@ 631 $(MAKE) -C .. src/$@
636 632
637doc.o: buildobj.h 633doc.o: buildobj.h
@@ -661,7 +657,7 @@ clean: mostlyclean
661## It should remove all files generated during a compilation/bootstrap, 657## It should remove all files generated during a compilation/bootstrap,
662## but not things like config.status or TAGS. 658## but not things like config.status or TAGS.
663bootstrap-clean: clean 659bootstrap-clean: clean
664 rm -f epaths.h config.h config.stamp stamp-h1 660 rm -f epaths.h config.h config.stamp
665 if test -f ./.gdbinit; then \ 661 if test -f ./.gdbinit; then \
666 mv ./.gdbinit ./.gdbinit.save; \ 662 mv ./.gdbinit ./.gdbinit.save; \
667 if test -f "$(srcdir)/.gdbinit"; then rm -f ./.gdbinit.save; \ 663 if test -f "$(srcdir)/.gdbinit"; then rm -f ./.gdbinit.save; \