summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-07-20 15:59:56 -0700
committerCarl Worth <cworth@cworth.org>2010-07-20 15:59:56 -0700
commitef133dbeb5a30b3d3bc814c4d219c8fbe612ac95 (patch)
tree605d9704e9346c6af584d1d7640165fa9e68cb09
parentf6d32ecc8a78ccf848b02301491f82b97e7106ee (diff)
Makefiles: Don't complain if depend file to be included doesn't exist.warnings-cleanup
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).
-rw-r--r--src/glut/glx/Makefile2
-rw-r--r--src/glw/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/glut/glx/Makefile b/src/glut/glx/Makefile
index 6889cd4b40..69f8052c09 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 1fb3d3c320..2191c018ab 100644
--- a/src/glw/Makefile
+++ b/src/glw/Makefile
@@ -71,4 +71,4 @@ depend: $(GLW_SOURCES)
$(X11_INCLUDES) > /dev/null
-include depend
+-include depend