Marc Chantreux <e...@phear.org> once said:
> [...]
> 
> pub/%.html: %.md template
>     mkpage $prereq(1) > $target
> 
> but when building index.html from index.md, i got
> 
>     mkpage index.md template(1) > $target
> 
> [...]
> 
> * is this a known bug?

It's a bug but it only affects the way mk prints
recipes. The actual recipe executes how you would
expect it to. To see this, add an echo $prereq(1)
to your recipe and check the output.

The relevant code is in mk/shprint.c. It only
handles simple variables. I thought I fixed this
years ago but I can't seem to find the patch.

Cheers,
  Anthony

Reply via email to