shithub: sirjofri_de

ref: 34a6fc202032ea87bf294fed418e81e22cb98238
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