hello suckless people,
i try to remove my current tools by simpler ones
when it's confortable enough.
here is my make for a simple website:
MKSHELL = rc
sources = `{ echo *.md }
pages = ${sources:%.md=pub/%.html}
$pages:
pub/%.html: %.md template
mkpage $prereq(1) > $target
but when build
On Sun, Nov 24, 2019, at 18:13, Marc Chantreux wrote:
> but when building index.html from index.md, i got
>
> mkpage index.md template(1) > $target
>
> instead of
>
> mkpage index.md template(1) > $target
These two lines look exactly the same to me. Did *I* miss something? Also,
what
Marc Chantreux 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.
hello,
On Sun, Nov 24, 2019 at 07:42:56PM -0500, Greg Reagle wrote:
> On Sun, Nov 24, 2019, at 18:13, Marc Chantreux wrote:
> > but when building index.html from index.md, i got
> > mkpage index.md template(1) > $target
> > instead of
> > mkpage index.md template(1) > $target
>
> These tw
> 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.
good to know :)
> 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 th