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:


Message sent via Savannah

Reply via email to