Index: trunk/tests/librnd/Makefile =================================================================== --- trunk/tests/librnd/Makefile (revision 37784) +++ trunk/tests/librnd/Makefile (revision 37785) @@ -38,7 +38,12 @@ librd_includes.o: librnd_includes.c includes -$(LIBRND_A) includes: ../../src/Makefile +# $(LIBRND_A) has multiple files; "flatten" this into a single rule so that +# make -j12 won't attempt to run them parallel +$(LIBRND_A): includes + +# install all binaries and includes to $$TDIR/include +includes: ../../src/Makefile TDIR=`pwd` && cd ../../src && $(MAKE) && $(MAKE) install HOW="install -f" DESTDIR=$$TDIR/include PREFIX= clean: