summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2009-09-22 23:26:59 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2009-09-22 23:26:59 +0200
commit621ac126d2267dad1a0729d2c4dee81fb4d42a3d (patch)
treeabb589c15cdcde7ce31c4f4334ab0c53ef983da4 /configure
parentbd75afcc2d7c4714bee568b7fed37f840aaee9ac (diff)
downloadeurephia-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-xconfigure26
1 files changed, 21 insertions, 5 deletions
diff --git a/configure b/configure
index 4b5ca11..ed1f5de 100755
--- a/configure
+++ b/configure
@@ -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: "