Subject: clean after failure
Description: Enable clean
Author: Tim Booth
Last-Updated: 2013-06-01
Forwarded: no
--- a/c++/src/build-system/new_module.sh.in
+++ b/c++/src/build-system/new_module.sh.in
@@ -178,7 +178,7 @@
     if test -x "$bindir/datatool"; then
         datatool=$bindir/datatool
         COMMON_AddRunpath "$libdir"
-    else
+    elif [ "$1" != "purge_sources" ] ; then
         echo "Unable to find datatool." >&2
         exit 2
     fi
