On 2024-11-08 4:55 p.m., Josiah Parry wrote:
Thanks, Ivan! I've been able to get quite far based on the code in
data.table*
which uses sed to generate the Makevars from the Makevars.in file. The new
challenge is that the Makevars file needs to be deleted after building.
I am pretty sure it does not need to be deleted. Just ignore it in the
build (i.e. list it in .Rbuildignore, so it doesn't end up in the
tarball, and each system installing the package recreates it).
Duncan Murdoch
The approach I have now is a cleanup script with only rm -rf src/Makevars.
This works *only* when --preclean or --clean is called. SO I'm not sure if
it is a
permanent solution. For example devtools::document() doesn't run the clean
step nor does pkgbuild::compile_dll().
I may keep banging my head against the keyboard on this...
*
https://github.com/Rdatatable/data.table/blob/08e94b7f4af3fc4403959282bf81c490ebdf9e72/src/Makevars.in#L7
On Fri, Nov 8, 2024 at 12:04 PM Ivan Krylov <ikry...@disroot.org> wrote:
В Fri, 8 Nov 2024 11:44:15 -0800
Josiah Parry <josiah.pa...@gmail.com> пишет:
Do you know of any good documentation on the use of Makevars.in with
configure?
A configure script for an R package could be any POSIX-compatible shell
script, including a hand-written one that substitutes strings using sed
[*], or even one that delegates to R [**]. If you do want to use GNU
Autoconf, the relevant sections of the manual are 4.8 and 7.2:
https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.72/html_node/Makefile-Substitutions.html
https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.72/html_node/Setting-Output-Variables.html
--
Best regards,
Ivan
[*] https://github.com/jeroen/V8/blob/master/configure
[**] https://github.com/kevinushey/configure
[[alternative HTML version deleted]]
______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel
______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel