I did not see anybody do this, so I am sharing it.

There is semi-nice way to get a per-rule software environment in #makefile .

Here is an example with #guix :

(i didnt manage to format the code on mastodon ..., code is in alternative text)

where

```
;; manifest-py.scm
(specifications->manifest (list "python" "bash"))
```
and
```
;; manifest-R.scm
(specifications->manifest (list "r" "bash"))
```
and `channels.scm` from `guix describe -f channels`

@GuilloteauQ take a look at Guile Scheme implementation of Make https://codeberg.org/lapislazuli/blue
blue

BLUE - Build Language User Extensible. A generic build-system crafted entirely in Guile.

Codeberg.org