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] $(