summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2008-10-04 07:58:09 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2008-10-04 07:58:09 +0200
commitdf26bfe8df13aa0977902317db18a095daac885e (patch)
treea2f9e2a5eda0c5f675cec8fd5581909d1afac56e /configure
parent1b7c160b1e3a09b7a655a546b4c13d65ad6e87c9 (diff)
downloadeurephia-df26bfe8df13aa0977902317db18a095daac885e.tar.gz
eurephia-df26bfe8df13aa0977902317db18a095daac885e.tar.xz
eurephia-df26bfe8df13aa0977902317db18a095daac885e.zip
configure now appends dist-clean rule to Makefile. Removed unneed CMakeLists.in
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 11 insertions, 1 deletions
diff --git a/configure b/configure
index 04e2712..04e59be 100755
--- a/configure
+++ b/configure
@@ -64,7 +64,7 @@ if [ -z "${OPENVPN_SRC_DIR}" ]; then
exit 1;
fi
-if [ ${DB} = 0 ]; then
+if [ -z "${DB}" ]; then
echo "You need to activate at least one database driver"
exit 1;
fi
@@ -73,6 +73,16 @@ rm -f CMakeCache.txt
cmake . ${PARAMS}
ec=$?
if [ $ec = 0 ]; then
+ cat >> Makefile <<EOF
+dist-clean : clean
+ find -type d -name "CMakeFiles" | xargs rm -rf
+ find -type d -name "cmake_install.cmake" | xargs rm -rf
+ find -type f -name Makefile | xargs rm -rf
+ find -type f -name "*~" | xargs rm -f
+ rm -f CMakeCache.txt
+
+EOF
+
echo
echo
echo "eurephia will be built with support for: "