fix parallel build problems with the lib/ subdir and multiple targets that descend...
authorMike Frysinger <vapier@gentoo.org>
Thu, 31 Dec 2009 20:06:53 +0000 (20:06 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 31 Dec 2009 20:06:53 +0000 (20:06 +0000)
Makefile

index f42a826..ad961ef 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -179,8 +179,9 @@ libdir:             version.h
 i18ndir:
                @$(MAKE) -C po
 
-subdirs:
-               @for i in $(SUBDIRS); do $(MAKE) -C $$i || exit $$? ; done
+# use libdir target for lib/ to avoid parallel build issues
+subdirs:       libdir
+               @for i in $(SUBDIRS:$(NET_LIB_PATH)/=); do $(MAKE) -C $$i || exit $$? ; done
 
 ifconfig:      $(NET_LIB) ifconfig.o
                $(CC) $(LDFLAGS) -o ifconfig ifconfig.o $(NLIB) $(RESLIB)