On 2026-07-28 11:44, G. Branden Robinson wrote:

Is there an Automake variable I can add as a prerequisite of libgroff.a?

If I understand things correctly, the .h files are not direct prerequisites of 
libgroff.a; instead, they are direct prerequisites of the relevant .o files, 
which in turn are prereqs of libgroff.a.

So, maybe changes lines like this:

src/libs/libgroff/libgroff_a-relocate.$(OBJEXT): defs.h

to lines like this:

src/libs/libgroff/libgroff_a-relocate.$(OBJEXT): $(BUILT_SOURCES)

and add a similar rule for src/libs/libgroff/libgroff_a-font.$(OBJEXT).

I don't know whether groff assumes GNU Make, so this idea might not be quite 
right for you.

The basic problem here, by the way, is that Automake automatically makes overall targets like 'all' 
depend on $(BUILT_SOURCES), but does not do the same for subsidiary targets like 
doc/groff-man-pages.pdf. If you don't want to mess with dependencies (quite understandable), your 
best answer might be "Don't do that." I.e., don't try to build individual targets until 
after you've done a plain "make".

Reply via email to