On Wed, Nov 13, 2024 at 11:13 AM Chet Ramey <chet.ra...@case.edu> wrote: > > On 11/12/24 7:18 PM, Grisha Levit wrote: > > > The latest change, > > > > +Makefile.in > > + - y.tab.h: move from CREATED_HEADERS to INSTALLED_HEADERS so we don't > > + clean it > > > > makes the install-headers target fail for an out-of-tree build since y.tab.h > > is in $(BUILD_DIR) but INSTALLED_HEADERS are only looked for in $(srcdir) > > This is one of the differences between the distributions and the devel > branch. y.tab.h is always in $(srcdir) in distributions, and the Makefiles > accommodate them in favor of the devel branch.
Could we install INSTALLED_HEADERS the same way as CREATED_HEADERS are? i.e. installing from $(BUILD_DIR) if it exists there and from $(srcdir) if not?