shithub: sirjofri_de

ref: b0ec2479954cc9f616167854ad892df2d43b5baa
dir: /mkfile/

View raw version
OBJECTS=`{ls *.ht | sed -e 's/\.ht$//g' | grep -v 'index'}

all:QV: pub/$OBJECTS/index.html pub/index.html
	echo 'Build complete'

pub/index.html:Q: head.htf index.ht foot.htf
	if(! test -d pub)
		mkdir pub
	cat $prereq | sed -e 's/PAGETITLE/sirjofri/g' > pub/index.html
	echo '√ '^$target

pub/%/index.html:Q: head.htf %.ht foot.htf
	if(! test -d pub)
		mkdir pub
	if(! test -d pub/$stem)
		mkdir pub/$stem
	cat $prereq | sed -e 's/PAGETITLE/'^$stem^'/g' > pub/$stem/index.html
	echo '√ '^$target