4 ms·
For those of us stuck working with vanilla GNU Make, you can still use $(shell) to accomplish a lot of what the Guile integration provides. As an example, stri
by nrclark 7y ago
For those of us stuck working with vanilla GNU Make, you can still use $(shell) to accomplish a lot of what the Guile integration provides.
As an example, string-length can farmed out by something like:
strlen = $(shell printf "$1" | wc -c)
When combined with $(eval), you can use the $(shell) command to do some pretty complex stuff in your Makefile. I've used this for doing checksum-based dependencies on one oddball build.
It's not as nice as working with Guile, but it gets the job done in a pinch. And since the Guile interface doesn't have direct hooks into the DAG or anything, it doesn't really have access to tools that you couldn't provide by calling $(eval) on the result of a shell script.