Hi,
crazily I've been using mk to build a website (trying to mimic SSI but
pre-request)
and I've run into a "shortcoming" with mk
this is something like my mkfile :
-------------------snip---------------------------------------
PAGES = public_html/index.html public_html/news.html
all:V: $PAGES
nuke:V:
rm -f $PAGES tmp/*
public_html/index.html: `{cpp -M src/index.html }
makepage src/`{basename $target} > $target
public_html/news.html: `{cpp -M src/news.html }
makepage src/`{basename $target} > $target
---------------------snip-------------------------------------
Whereas what would make like *much* easier would be if I could do this :
public_html/%.html: `{cpp -M src/%.html }
makepage src/$stem.html > $target
but mk doesn't expand the % in `{}
Any magic I missed before hacking & slashing /sys/src/cmd/mk ?