If I go into a given objs subdirectory, I can get the object files put into it. So far, so good. I could not get the same result from a given application's directory
app1 and app2 both use/ depend on, my library lib.
I was hoping it was possible to run make from an application's directory and put the main executable there. And I wanted it to have each source file in each test directory be compiled to an executable in the same directory. I am not sure I can automate inference of what cpp files in src a given exe file in test would depend on (is there a way?). But I want to prevent the production of the application exe or the library, if any of the tests fail.
Can I do this entirely from a single makefile in each application's directory, or do I have to put a makefile into the lib and each objs and test directory and somehow have the makefile in each application's directory invoke make on the makefiles in the corresponding objs and test subdirectories? If so, how? If this is in the manual, I seem to have somehow missed it.