Skip to contentSkip to conversation

build-sys: prevent warning about .depend when running make

PATCH Applied Filipe Brandenburger 2 participants 2 messages Jul 22, 2014 – Jul 23, 2014 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build-sys: prevent warning about .depend when running make

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.
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index fe42638fbca4..53191af58f8f 100644
@@ -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
 
Signature · 1 line
2.0.0.526.g5318336
#1 lore raw

Hi Filipe,

Applied. (numactl-2.0.10-rc2)

Thanks.

-Cliff

Quoted 36 lines · 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.
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index fe42638fbca4..53191af58f8f 100644
@@ -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
 
Signature · 1 line
2.0.0.526.g5318336
Signature · 5 lines
Cliff Wickman
SGI
[email protected]
(651) 683-3824
(651) 482-9347h