@echo off
echo Configuring %2
makedir ../%2
redir -o makedos.tmp sed -e 's!@SRCDIR@!%1/%2!' common.sed
redir -oa makedos.tmp cat %2.sed
redir -o makefile.tmp sed -f makedos.tmp %1/%2/Makefile.in
update makefile.tmp ../%2/Makefile