Follow-up Comment #8, bug #10593 (project make):

This solution works for me, thanks to $(shell var=val .... command arg ...)
working fine:

  # put desired env vars into "shell_env" variable
  shell_exports := foo000=bar000 foo001=bar001
  
  # interpolate variable as a prefix of shell command
  $(info $(shell $(shell_exports) env | grep bar))

The Makefile can maintain a shell_exports variable as it sees fit, adding to
it with +=, removing using filter/filter-out and whatnot.





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?10593>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/


Reply via email to