#!/bin/sh

# Coded by kaworu
# since 2005/07/28

# generate for Makefile.inc

exec > Makefile.inc

/bin/cat<<EOF
# Coded by kaworu
# since 2005/07/28
# generated by configure
EOF

/usr/bin/find selenium -type d|sed -n '2,$p'\
	|/usr/bin/sed -e 's:^selenium::' \
	|/usr/bin/sed -e 's:\(.*\):	${INSTALL} -d root -g wheel ${DST}/\1:'


/usr/bin/find selenium -type f\
	|/usr/bin/sed -e 's:^selenium/::' \
	|/usr/bin/sed -e 's:\(.*\):	${INSTALL} -c -o root -g wheel selenium/\1 ${DST}/\1:'

echo "	\${INSTALL} -c -o root -g wheel man/selenium.1 \${PREFIX}/man/man1/selenium.1"

/usr/bin/find doc -type d\
	| /usr/bin/sed -e 's:\(.*\):	${INSTALL} -d -o root -g wheel ${DST}/\1:'

/usr/bin/find doc -type f\
	| /usr/bin/sed -e 's:\(.*\):	${INSTALL} -c -o root -g wheel \1 ${DST}/\1:'
