From a614cd416c5dd71702428a008992589395a722fc Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 7 Apr 2017 18:54:40 -0700 Subject: [PATCH] Fix dependency checking in src/Makefile.in * src/Makefile.in (AUTO_DEPEND, DEPDIR, DEPFLAGS): Move includes of dependency files until after ALLOBJS is defined, since it uses ALLOBJS. Otherwise, some dependencies will be missed. --- src/Makefile.in | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Makefile.in b/src/Makefile.in index 5a3d0bd0445..bed53f8f4be 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -347,16 +347,6 @@ am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = -AUTO_DEPEND = @AUTO_DEPEND@ -DEPDIR = deps -ifeq ($(AUTO_DEPEND),yes) - DEPFLAGS = -MMD -MF $(DEPDIR)/$*.d -MP - -include $(ALLOBJS:%.o=$(DEPDIR)/%.d) -else - DEPFLAGS = - include $(srcdir)/deps.mk -endif - # Flags that might be in WARN_CFLAGS but are not valid for Objective C. NON_OBJC_CFLAGS = -Wignored-attributes -Wignored-qualifiers -Wopenmp-simd @@ -445,6 +435,16 @@ otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(GMALLOC_OBJ) $(RALLOC_OBJ) \ FIRSTFILE_OBJ=@FIRSTFILE_OBJ@ ALLOBJS = $(FIRSTFILE_OBJ) $(VMLIMIT_OBJ) $(obj) $(otherobj) +AUTO_DEPEND = @AUTO_DEPEND@ +DEPDIR = deps +ifeq ($(AUTO_DEPEND),yes) + DEPFLAGS = -MMD -MF $(DEPDIR)/$*.d -MP + -include $(ALLOBJS:%.o=$(DEPDIR)/%.d) +else + DEPFLAGS = + include $(srcdir)/deps.mk +endif + all: emacs$(EXEEXT) $(OTHER_FILES) .PHONY: all -- 2.39.2