how to make $(eval $(shell ...)) work in GNU make

Viewed 5776

make syntax is newline-delimited, but $(shell ...) replaces newlines with whitespace. So what's the least ugly way to do

$(eval $(shell program-that-emits-makefile-fragment))

which doesn't work the way one might like.

3 Answers
Related