From: Paul Brossier Date: Thu, 17 Nov 2011 01:30:49 +0000 (-0800) Subject: wscript: ask the user to run 'make distclean' before running waf X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e565c6494c756d819a876eab15b246b4dc10995f;p=aubio.git wscript: ask the user to run 'make distclean' before running waf --- 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'