diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2009-09-22 23:26:59 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2009-09-22 23:26:59 +0200 |
commit | 621ac126d2267dad1a0729d2c4dee81fb4d42a3d (patch) | |
tree | abb589c15cdcde7ce31c4f4334ab0c53ef983da4 /configure | |
parent | bd75afcc2d7c4714bee568b7fed37f840aaee9ac (diff) | |
download | eurephia-621ac126d2267dad1a0729d2c4dee81fb4d42a3d.tar.gz eurephia-621ac126d2267dad1a0729d2c4dee81fb4d42a3d.tar.xz eurephia-621ac126d2267dad1a0729d2c4dee81fb4d42a3d.zip |
Added build rules and configure --doxygen argument to build Doxygen docs via make
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 26 |
1 files changed, 21 insertions, 5 deletions
@@ -73,6 +73,9 @@ configure help for eurephia firewall interface being built --eurephiadm-xslt -- eurephiadm XSLT root path (default: ${EUREPHIADM_XSLT}) + ** Documentation + --doxygen -- Compile Doxygen developer documentation + EOF } @@ -182,6 +185,10 @@ while [ ! -z "$1" ]; do EUREPHIADM_XSLT_SET=1 shift ;; + --doxygen) + PARAMS="${PARAMS} -DDOXYGEN=ON" + DOXY_DISTCLEAN="rm -r doxygen/eurephia-devel" + ;; *) echo "Unkown option: $1" exit 2 @@ -204,8 +211,10 @@ fi # Make sure at least one database driver is enabled. if [ -z "${DB}" ]; then - echo "You need to activate at least one database driver" - exit 1; + if [ -n "${PLUGIN}" -o -n "${ADMIN}" ]; then + echo "You need to activate at least one database driver when OpenVPN plug-in or eurephiadm is enabled" + exit 1; + fi fi # Set default parameters for the SQLite3 database @@ -235,7 +244,9 @@ EOF echo echo "eurephia will be built with support for: " echo - echo " Database: ${DB}" + if [ -n "${DB}" ]; then + echo " Database: ${DB}" + fi echo " Firewall: ${FW:-"None"}" echo " OpenVPN plug-in: ${PLUGIN:-"No plug-ins requested"}" echo " Admin tools: ${ADMIN:-"None"}" @@ -247,13 +258,17 @@ EOF echo " XSLT base path: ${XSLTPATH}" echo " eurephiadm XSLT path: ${EUREPHIADM_XSLT}" fi - if [ ${DB} = "SQLite3" ]; then + if [ "${DB}" = "SQLite3" ]; then echo " SQLite3 database path: ${SQLITE3PREFIX}" fi if [ "$GCOV" = "1" ]; then echo - echo "eurephia will be built with gcov. This may have a performance impact" + echo " eurephia will be built with gcov. This may have a performance impact" + fi + if [ -n "${DOXY_DISTCLEAN}" ]; then + echo + echo " eurephia developers documentation will be compiled under ./doxygen/eurephia-devel/" fi echo echo @@ -279,6 +294,7 @@ distclean : clean find -type f -name Makefile | xargs rm -rf find -type f -name "*~" | xargs rm -f rm -f CMakeCache.txt + ${DOXY_DISTCLEAN} uninstall : @echo "Uninstalling eurephia: " |