ref: e1bbc4a737650ab32573dab290560907cf94ef5e
dir: /mkfile/
files=`{ls *.ht}
softs=`{ls softs/*.sed}
all:V: ${files:%.ht=out/%.html} out/index.html copycommon
clean:V:
rm index.ht
out/%.html: %.ht %.sed frag/header.htf frag/footer.htf
sed -f $stem.sed frag/header.htf $stem.ht frag/footer.htf > $target
index.ht: $softs frag/soft.htf frag/index0.htf frag/index1.htf
>$target {
cat frag/index0.htf
for (s in $softs) {
sed -f $s frag/soft.htf
}
cat frag/index1.htf
}
copycommon:V:
mkdir -p out/common
cp common/* out/common