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 6889cd4b402f561706ef79b46962a7358f08523a..69f8052c0927a005ddb8917c97ee7a63428a2be0 100644 (file)
@@ -137,4 +137,4 @@ depend: $(SOURCES)
        @ $(MKDEP) $(MKDEP_OPTIONS) -I$(TOP)/include $(SOURCES) \
                $(X11_INCLUDES) > /dev/null 
 
-include depend
+-include depend
index 39352f0532022b7a7a4111df6c7828af058ba855..776b1aa5bfb9b5e678f5b4e0e68487dfaca8a6f2 100644 (file)
@@ -71,4 +71,4 @@ depend: $(GLW_SOURCES)
                $(X11_INCLUDES) > /dev/null
 
 
-include depend
+-include depend