MKSHELL=rc md=`{ls *.md >[2]/dev/null | sed 's/\.rc$/.md/g' | sort | uniq} html=${md:%.md=%.html} cfg=`{ls lib/*.cfg} tpl=`{ls lib/*.tpl} CLEANFILES=\ $html\ sitemap.html\ changes.html\ all:V: $html sitemap.html changes.html %.md:D: %.rc rc $stem^.rc >$target %.html: %.md $cfg $tpl ./lib/mkpage ./lib/mkpage $stem >$target sitemap.html changes.html: $md $cfg $tpl ./lib/mkpage ./lib/mksitemap ./lib/mksitemap clean:V: rm -f $CLEANFILES