Re: Generate porting.info in build tree rather than source tree
Mike Frysinger <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <Y10raq2js8x+nraS@vapier> |
On 28 Oct 2022 17:40, Torbjorn SVENSSON wrote: > With the recent improvements in the build system by Mike Frysinger, I've > noticed a minor regression. this is not new behavior. you can check out newlib-4.1.0 which doesn't contain any of my build changes and it does the same thing. > When building newlib, the file libgloss/doc/porting.info is always > created in the source tree rather than the build tree. Looking at the > libgloss/Makefile.* files, it appears that this is derived from the > libgloss/doc/Makefile.inc line: > info_TEXINFOS += %D%/porting.texi > > To my knowledge (no automake wiz...), %D% is a relative path, so I > suppose the generated path should not use $(srcdir), yet the Makefile.in > does contain $(srcdir)/doc/porting.info. > > Would it be possible to have this porting.info file generated in the > build tree rather than the source tree to avoid having the source tree > in a dirty state after a build? this is WAI. info files are distributed with releases, so it should be generated in the source tree. this is documented here: https://www.gnu.org/prep/standards/html_node/Standard-Targets.html#Standard-Targets > 'info' > Normally a GNU distribution comes with Info files, and that means the Info > files are present in the source directory. Therefore, the Make rule for an > info file should update it in the source directory. When users build the > package, ordinarily Make will not update the Info files because they will > already be up to date. -mike
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmNdK2oACgkQQWM7n+g3 9YEOtg/+KCg5iWX54nQoSIh8Wq0r+TO95vyhtPp4mlUvqW070rOt9WnjkuuojTK5 sx6XuDqWxkwiaB75dKp6WMPS8jPR5029FLPqo1Jp6prVc8PDmVxcEm02WLWaV34k oGO37Xfge2DShXCocHnFlCHP6dGKCkYgFCdIYMfQtUtLiFHK/S0inGdeHG+9t715 XTIvlizeus8/QIdX00ETGYO131i/3V+IOGQfnpEDpqRHjLGx6v1XrpNBcU00/XDa cJU/ZUjXXzk6P7reIVydNsWwQwEwZ1vnw6FkH/4lxVZXQYZ+NU1c509KrGkCD3fA 0msDp8oiVb0z4fVTt7H+i/A0eXqNoIEF9vIFOv9mL8dq+IbWrsmnZ6gNoK4+Wbcl DF5sLimFKXqpU/XG44lPMoJiCaLwXSUDxeTGeNFuxtUzsahBweIXUBwIt8u+qbdA XYEgxidgEXqHTG90rRQUQN9J2RygGYVK+I4JXZ4xAjfxiKGaEGxqMScVi0Dm0P1F YIHlFNBOUiyQTCb3Kmm4CrdZiKXO7t9Nu+w5SIWEwti1bg+SFwS5TNfKaXBvQdOQ dhxXbgLMduRuilhN9HoBgbMmvy+hl6Czxb81Wkzvv1k5FfcqoQHQuFfwM5QB4FTt hHLZLJ4STEfI3eqmfuocGGYz7J1bw/MN6lAi3tk5wnd2kZwzg9c= =VooA -----END PGP SIGNATURE-----