shithub: sirjofri_de

ref: afe388fc94d38d093f1f3d38f3be445d6f62347c
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 > 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 > pub/$stem/index.html
	echo '√ '^$target