Ralf Wildenhues wrote:
Oh, ok. Like this?
if PROG1
prog1_headers = ...
else
prog1_headers =
endif
...
noinst_HEADERS = $(prog1_headers) ...
IOW: just rename all *_HEADERS to *_headers, that way automake will
ignore them. And list all *_headers in noinst_HEADERS.
s/HEADERS/headers/ and adding them all to noinst_HEADERS works, thanks.
Apparently I have a limited understanding of dependencies. I still
don't know what the "if PROG1" stuff is about (I don't want these test
programs to exist conditionally), but I guess it's useful as a general
form and thus better for the archives.
Cheers,
Chris