From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <483EB08B.9020509@proweb.co.uk> Date: Thu, 29 May 2008 14:32:59 +0100 From: matt User-Agent: Icedove 1.5.0.14pre (X11/20080304) MIME-Version: 1.0 To: 9fans@9fans.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [9fans] % $stem & $target in mk Topicbox-Message-UUID: af0ef4f8-ead3-11e9-9d60-3106f5b1d025 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 ?