r-wasm / webr

The statistical language R compiled to WebAssembly via Emscripten, for use in web browsers and Node.
https://docs.r-wasm.org/webr/latest/
Other
848 stars 67 forks source link

Add help and debug targets, fuzzy assign WEBR_ROOT #410

Closed coatless closed 5 months ago

coatless commented 5 months ago

As part of digging into the build process, I thought it would be helpful to add to the top-level Make file:

  1. a debug variables statement; and,
Screenshot showing the results of `make debug`
  1. a help documentation statement.
Screenshot showing the results of `make help`

I've also moved to use a conditional assignment for WEBR_ROOT so that it is read from the environment variable set up in the Dockerfile. (Note: There are a few more changes required for this to be portable, but I wanted to start small.)

I'll likely add a similar patch for each subsequent makes if okay.

coatless commented 5 months ago

@georgestagg no worries. Added the suggestions. This should be ready for a merge when you a moment.