make depend needs to decend into lib/*/test [rt #43105]

(cherry picked from commit 5336feefb0)
This commit is contained in:
Mark Andrews 2016-08-29 10:19:56 +10:00
parent d04daf6177
commit 7468edf680

View file

@ -57,6 +57,7 @@ all: subdirs ${TARGETS} testdirs
###
### Makefile may define:
### SUBDIRS
### DEPDIRS
ALL_SUBDIRS = ${SUBDIRS} nulldir
ALL_TESTDIRS = ${TESTDIRS} nulldir
@ -244,7 +245,7 @@ distclean maintainer-clean::
rm -f Makefile
depend:
@for i in ${ALL_SUBDIRS}; do \
@for i in ${ALL_SUBDIRS} ${ALL_TESTDIRS}; do \
if [ "$$i" != "nulldir" -a -d $$i ]; then \
echo "making depend in `pwd`/$$i"; \
(cd $$i; ${MAKE} ${MAKEDEFS} DESTDIR="${DESTDIR}" $@) || exit 1; \