wscript: ask the user to run 'make distclean' before running waf
authorPaul Brossier <piem@piem.org>
Thu, 17 Nov 2011 01:30:49 +0000 (17:30 -0800)
committerPaul Brossier <piem@piem.org>
Thu, 17 Nov 2011 01:30:49 +0000 (17:30 -0800)
wscript

diff --git a/wscript b/wscript
index 884dc6f057edccfc2142cfdf6e238042488026cf..980467332f557399567567b646d422886f7ea171 100644 (file)
--- a/wscript
+++ b/wscript
@@ -21,6 +21,12 @@ VERSION = '.'.join \
        + AUBIO_VERSION_STATUS
 LIB_VERSION = '.'.join \
        ([str(x) for x in [LIBAUBIO_LT_CUR, LIBAUBIO_LT_REV, LIBAUBIO_LT_AGE]])
+
+import os.path, sys
+if os.path.exists('src/config.h') or os.path.exists('Makefile'):
+    print "Please run 'make distclean' using waf"
+    sys.exit(1)
+
 top = '.'
 out = 'build'