shithub: sirjofri_de

ref: 96ba246622808175bebfed50a80bea336076ec69
dir: /mkfile/

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


all:V: pub/$OBJECTS/index.html pub/index.html
	echo pub/$OBJECTS

pub/index.html: head.htf index.ht foot.htf
	echo $target
	if(! test -d pub)
		mkdir pub
	cat $prereq > pub/index.html

pub/%/index.html: head.htf %.ht foot.htf
	echo $target
	if(! test -d pub)
		mkdir pub
	if(! test -d pub/$stem)
		mkdir pub/$stem
	cat $prereq > pub/$stem/index.html