From patchwork Thu Dec 21 13:33:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 10127681 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 456976019C for ; Thu, 21 Dec 2017 13:52:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33F5229C95 for ; Thu, 21 Dec 2017 13:52:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 28E8729C9B; Thu, 21 Dec 2017 13:52:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B65D429C95 for ; Thu, 21 Dec 2017 13:52:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751808AbdLUNwL (ORCPT ); Thu, 21 Dec 2017 08:52:11 -0500 Received: from metis.ext.4.pengutronix.de ([92.198.50.35]:48505 "EHLO metis.ext.4.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752658AbdLUNwK (ORCPT ); Thu, 21 Dec 2017 08:52:10 -0500 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eS1Gb-0001MT-1u; Thu, 21 Dec 2017 14:52:09 +0100 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1eS0yQ-0000Mm-4o; Thu, 21 Dec 2017 14:33:22 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Chris Ball Cc: linux-mmc@vger.kernel.org, kernel@pengutronix.de Subject: [PATCH mmc-utils 3/6] mmc-utils: make use of dependency information generated by gcc Date: Thu, 21 Dec 2017 14:33:13 +0100 Message-Id: <20171221133316.19466-4-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171221133316.19466-1-u.kleine-koenig@pengutronix.de> References: <20171221133316.19466-1-u.kleine-koenig@pengutronix.de> X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-mmc@vger.kernel.org Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --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