Prevent makedepend from running multiple times
authorDan Nicholson <dbn.lists@gmail.com>
Tue, 6 May 2008 21:27:57 +0000 (14:27 -0700)
committerDan Nicholson <dbn.lists@gmail.com>
Tue, 6 May 2008 21:29:10 +0000 (14:29 -0700)
The default target in src/mesa/Makefile calls a recursive $(MAKE). With
parallel jobs, this causes makedepend to run twice. Instead, block on
the first make until depend has been created.

src/mesa/Makefile

index 5f45db1..70d31ad 100644 (file)
@@ -24,7 +24,7 @@ GL_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY)
 
 
 # Figure out what to make here
-default:
+default: depend
        @for driver in $(DRIVER_DIRS) ; do \
          case "$$driver" in \
            x11)      $(MAKE) stand-alone ;; \