From 6846af6612674d854613e9936deb358f6c1b3cfe Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 2 Mar 2021 21:20:42 +0100 Subject: [PATCH] makefiles: retry faster deps again From commit 29abba378520a270c3a9385724c8ef5df66497b1 we have hopefully fixed most of troubles for deps tracking we had in past - so retry again. Drop explicit configure.h from DEPS - as it's automatically gathered by gcc dependency tracking anyway. --- libdm/make.tmpl.in | 23 ++++++++--------------- make.tmpl.in | 23 ++++++++--------------- 2 files changed, 16 insertions(+), 30 deletions(-) diff --git a/libdm/make.tmpl.in b/libdm/make.tmpl.in index 1192e87e8..af55a7f91 100644 --- a/libdm/make.tmpl.in +++ b/libdm/make.tmpl.in @@ -280,7 +280,7 @@ INCLUDES += -I$(srcdir) -I$(top_srcdir) -I$(top_builddir)/include -include confi DEPS = $(top_builddir)/libdm/make.tmpl $(top_srcdir)/VERSION \ - $(top_builddir)/libdm/Makefile $(top_builddir)/include/configure.h + $(top_builddir)/libdm/Makefile OBJECTS = $(SOURCES:%.c=%.o) $(CXXSOURCES:%.cpp=%.o) POTFILES = $(SOURCES:%.c=%.pot) @@ -397,14 +397,16 @@ endif .LIBPATTERNS = lib%.so lib%.a +DEPFLAGS=-MT $@ -MMD -MP -MF $*.d + # still needed in 2018 for 32bit builds DEFS+=-D_FILE_OFFSET_BITS=64 -%.o: %.c +%.o: %.c $(DEPS) @echo " [CC] $( /dev/null -%.d: %.c - @echo " [DEP] $(> $@; \ - [ -s $@ ] || $(RM) $@ +%.d: +.PRECIOUS: %.d %.mo: %.po @echo " [MSGFMT] $( /dev/null -%.d: %.c - @echo " [DEP] $(> $@; \ - [ -s $@ ] || $(RM) $@ +%.d: +.PRECIOUS: %.d %.mo: %.po @echo " [MSGFMT] $(