> > Ah, I see; you're running `make regress' ; simply running `make' should > > work correctly (it implies building, and the running the regress target, > > when Makefile includes <bsd.regress.mk>). > > That would fix it for the local case inside of /usr/src/regress. Wouldn't > it still be an issue at the top level /usr/src/Makefile when you run > 'make regression-tests' which calls make depend && make regress instead > of make? > > I looked at the comments in /usr/src/regress/Makefile and it says to run > 'make depend' followed by 'make regress'. I went looking in the tree for > other cases where there's a lib dependency. > /usr/src/regress/misc/sse2/libbar has 'regress: all'. > > Let me know which way you would prefer it fixed and I'll submit a new > patch.
Well, according to bsd.regress.mk(5), `regress' is the target to use to run the tests, so it makes sense for it to do whatever is necessary to build things first. So your diffs are going in the right direction.
