These tests programs all depend on a common header file, which is in a
parent directory ../nc_tests.h
(It's in a parent directory because it's used by other test programs,
in other directories.)
Currently this dependency is not tracked. I can change the nc_test.h
file, then do a make check in the directory with all these tests, and
none of them will be rebuilt.
I believe that the way to add these dependencies is like this:
tst_h_files_DEPENDENCIES = ../nc_test.h
tst_h_atts_DEPENDENCIES = ../nc_test.h
etc.
But is there a way of telling automake that *all* the test programs are
dependent on ../nc_test.h?
Would if be different if I used the SOURCES primary? Like this:
tst_h_files_SOURCES tst_h_files.c ../nc_test.h
tst_h_atts_SOURCES tst_h_atts.c ../nc_test.h
etc.
Any suggestions would be welcome!
Thanks!
Ed