On Fri, Mar 28, 2025 at 04:28:53PM +0100, Simon Sobisch wrote: > +cobol/charmaps.cc cobol/valconv.cc: cobol/%.cc: $(LIB_SOURCE)/%.cc > + -l='ec\|common-defs\|io\|gcobolio\|libgcobol\|gfileio\|charmaps'; \ > + l=$$l'\|valconv\|exceptl'; \ > + sed -e '/^#include/s,"\('$$l'\)\.h","../../libgcobol/\1.h",' $^ > $@ > > > The proposed rule is much better than the old one - but is there a technical > reason to not just add -I ../../libgcobol or, possibly better, -I > $(LIB_SOURCE) to appropriate CPPFLAGS?
I think it is better to make it clear in the sources what headers come from the library and what comes from the FE. I believe this has been discussed earlier already. Jakub