diff mbox

[mmc-utils,3/6] mmc-utils: make use of dependency information generated by gcc

Message ID 20171221133316.19466-4-u.kleine-koenig@pengutronix.de (mailing list archive)
State New, archived
Headers show

Commit Message

Uwe Kleine-König Dec. 21, 2017, 1:33 p.m. UTC
While these dependency information was generated from the start of mmc-utils
it was never used.

Using these informations results in mmc being rebuild when e.g. mmc.h
was touched.
---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/Makefile b/Makefile
index 5e4eb1cb0153..aa27ff2b7707 100644
--- a/Makefile
+++ b/Makefile
@@ -52,4 +52,6 @@  install: $(progs) install-man
 	$(INSTALL) -m755 -d $(DESTDIR)$(bindir)
 	$(INSTALL) $(progs) $(DESTDIR)$(bindir)
 
+-include $(foreach obj,$(objects), $(dir $(obj))/.$(notdir $(obj)).d)
+
 .PHONY: all clean install manpages install-man