DOCDIR=${INSTALL_ROOT}/usr/share/doc/${SPELL}                             &&
mkdir -p $DOCDIR                                                          &&
install -m644 ${SOURCE_DIRECTORY}/aflex/doc/aflex.man ${INSTALL_ROOT}/usr/share/man/man1/aflex.1     &&
install -m644 ${SOURCE_DIRECTORY}/ayacc/doc/old_docs/ayacc.manpage ${INSTALL_ROOT}/usr/share/man/man1/ayacc.1 &&
for program in aflex ayacc; do
  install -m755 ${SOURCE_DIRECTORY}/$program/src/$program ${INSTALL_ROOT}/usr/bin &&
  install -m644 ${SOURCE_DIRECTORY}/$program/doc/{READ_ME,${program}.html,${program}_user_man.*} ${DOCDIR} || return 1
done &&
mkdir ${DOCDIR}/{ada_parser,calc} &&
install -m644 ${SOURCE_DIRECTORY}/aflex/doc/{example.l,test95.l} ${DOCDIR} &&
install -m644 ${SOURCE_DIRECTORY}/ayacc/examples/ada_parser/{COMPILE,READ.ME,ada.y,ada_lex.l,driver.a} \
  ${DOCDIR}/ada_parser &&
install -m644 ${SOURCE_DIRECTORY}/ayacc/examples/calc/{COMPILE,READ.ME,calc*,driver.a} \
  ${DOCDIR}/calc
