What the hell is this?
Some of the more interesting functions in Haskell's
re-written in GNU make, without shelling out or using guile.
In theory, these functions could be used to write more advanced makefiles. In practice, GNU make is such a restricted environment (without shelling out), that the implementation we have to create for many of our functions is absurd.
Basically, I wrote this because I could.
Can I use this?
It's under the WTFPL, so yes.
How do I use this?
prelude.mk to your project, and put in your Makefile
Prelude's functions can be called with make's
all: @echo $(call sum,$(call range,100))
Should I use this?
No. Dear god. No.
It would be reasonable to reimplement many of these concepts using the
function, but don't try to use this pure-make implementation.