Makefiles: Don't complain if depend file to be included doesn't exist.
authorCarl Worth <cworth@cworth.org>
Tue, 20 Jul 2010 22:59:56 +0000 (15:59 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 21 Jul 2010 20:19:33 +0000 (13:19 -0700)
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).

src/glut/glx/Makefile
src/glw/Makefile

index 6889cd4..69f8052 100644 (file)
@@ -137,4 +137,4 @@ depend: $(SOURCES)
        @ $(MKDEP) $(MKDEP_OPTIONS) -I$(TOP)/include $(SOURCES) \
                $(X11_INCLUDES) > /dev/null 
 
-include depend
+-include depend
index 39352f0..776b1aa 100644 (file)
@@ -71,4 +71,4 @@ depend: $(GLW_SOURCES)
                $(X11_INCLUDES) > /dev/null
 
 
-include depend
+-include depend