#!/bin/bash

if [ $TRILINOS_HOME ]; then
  echo "TRILINOS_HOME has already been set!"
else
  echo "TRILINOS_HOME has not been set.  Setting it!"
  export TRILINOS_HOME=`pwd`/../../..
fi

echo
echo "Generating main belos doxygen documentation ..."
echo

mkdir -p html/common
cp -r ../../../doc/DocumentingParameterLists/webFiles html/common/parameterList

doxygen DoxyfileWeb

echo
echo "Generating doxygen browser documentation for all of belos ..."
echo

doxygen ../browser/doc/Doxyfile
