News for hackers. Stuff that matters.
Re:GNU Make Guile Integration by nrclark on Tuesday March 17, 2020 @12:42PM (#22606812)
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.

There are no comments on this comment yet.