From: Filipe Brandenburger Subject: [PATCH] build-sys: prevent warning about .depend when running make Date: Tue, 22 Jul 2014 14:49:55 -0700 Message-ID: <1406065795-30520-1-git-send-email-filbranden@google.com> Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=/z67D0Ap6ErhManFYQnCxIwiN5WpaRbufzQaaTpN1jE=; b=CH+UYvPqMFZAWPkLTouQM4YSsCjcPGrAS6nH6b2unWs2I46BEZ4NLuSiZGloTstRDW zzU52uj5F/ZFCNYR/lYtSgVFxPvo0zZ4ahGFBV4jQkKqsT7OxRoiFBtqHIsnk8tohNdq YnGwXF75aVWnblPQ35Fyg1XRqpv+XRtuEF6fPL37QToM0rKJc9hojU3qZgysiBm0dxYm VTGE17+e4VZ4j08zCXiLanupc19mjhz2EKKRYKjS8M51dWepDAS0RBKkb90hmLTleYji BacPj1zKGTYW/RH0c41ZvejBEiF9QPvBXHu3RsEgJtLlWF04BCY+J/D3bzGlTmemUrxb U7jQ== Sender: linux-numa-owner@vger.kernel.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Cliff Wickman , linux-numa@vger.kernel.org Cc: Greg Thelen , Filipe Brandenburger This is the typical warning: $ make clean >/dev/null Makefile:200: .depend: No such file or directory It happens because there is no rule to build .depend before executing the make action. Ignoring errors when including generated dependency information seems to be the norm in Makefiles, so we might as well do it here. Tested: - Checked that the warning is gone with the patch: $ make clean >/dev/null (empty) - Built libnuma and ran make test_numademo, confirmed it works. Signed-off-by: Filipe Brandenburger --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fe42638fbca4..53191af58f8f 100644 --- a/Makefile +++ b/Makefile @@ -197,7 +197,7 @@ depend: .depend .depend: ${CC} -MM -DDEPS_RUN -I. ${SOURCES} > .depend.X && mv .depend.X .depend -include .depend +-include .depend Makefile: .depend -- 2.0.0.526.g5318336