From: Carl Worth Date: Tue, 20 Jul 2010 22:59:56 +0000 (-0700) Subject: Makefiles: Don't complain if depend file to be included doesn't exist. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d1a61efbecfb0093887ebe14b4aff4e7f6aeb85;p=mesa.git Makefiles: Don't complain if depend file to be included doesn't exist. While bootstrapping the dependencies, make will see the "include depend" directive before the depend file has been created. To avoid a spurious warning in this case we use "-include" instead, (which differs precisely in the fact that it will not emit a diagnostic if the named file does not exist). --- diff --git a/src/glut/glx/Makefile b/src/glut/glx/Makefile index 6889cd4b402..69f8052c092 100644 --- a/src/glut/glx/Makefile +++ b/src/glut/glx/Makefile @@ -137,4 +137,4 @@ depend: $(SOURCES) @ $(MKDEP) $(MKDEP_OPTIONS) -I$(TOP)/include $(SOURCES) \ $(X11_INCLUDES) > /dev/null -include depend +-include depend diff --git a/src/glw/Makefile b/src/glw/Makefile index 39352f05320..776b1aa5bfb 100644 --- a/src/glw/Makefile +++ b/src/glw/Makefile @@ -71,4 +71,4 @@ depend: $(GLW_SOURCES) $(X11_INCLUDES) > /dev/null -include depend +-include depend