I am playing with the $(guile ...)
support in GNU Make, but I'm having trouble generating a complete recipe from within Guile.
This traditional approach works as expected:
brazil:
<--tab-->@echo Ere I am J.H.
(where <--tab-->
is an ASCII tab character, as required)
But when I try this supposed-equivalent:
$(guile (format #f "brazil:~%~/@echo Ere I am J.H."))
I am treated to the following error message when I run make brazil
:
make: *** No rule to make target '@echo', needed by 'brazil'. Stop.
I was under the impression that with format
, ~%
encodes a newline, and ~/
encodes a tab character. But based on the error message above, it seems like at least the newline is missing from the generated recipe.