From e565c6494c756d819a876eab15b246b4dc10995f Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 16 Nov 2011 17:30:49 -0800 Subject: [PATCH] wscript: ask the user to run 'make distclean' before running waf --- wscript | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wscript b/wscript index 884dc6f0..98046733 100644 --- 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' -- 2.26.2