gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] [PATCH] Fix the carnivorous config bug


From: Christian Gagneraud
Subject: Re: [gpsd-dev] [PATCH] Fix the carnivorous config bug
Date: Sun, 03 Nov 2013 11:13:14 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1

Oops! This is not working correctly yet, sorry for me rushing in...
I'll send a better one.


On 11/03/2013 11:09 AM, Christian Gagneraud wrote:
This should fix the "carnivorous config bug", scons -c used to delete
".sconf_temp" but keep other scons' temporary files, this patch fix scons
behaviour to act like the good all autotools way:
make clean => scons -c
make distclean => scons -c distclean

Signed-off-by: Christian Gagneraud <address@hidden>
---
  SConstruct | 7 +++++--
  1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/SConstruct b/SConstruct
index 050b61b..95d477d 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1268,10 +1268,13 @@ build = env.Alias('build', [libraries, binaries, 
python_built_extensions, "gpsd.
  env.Clean(build,
            map(glob.glob,("*.[oa]", "*.os", "*.os.*", "*.gcno", "*.pyc", 
"gps/*.pyc")) + \
            generated_sources + \
-          map(lambda f: f[:-3], templated) + \
-          [".sconf_temp"])
+          map(lambda f: f[:-3], templated))
  env.Default(*build)

+## "make distclean" => "scons -c distclean"
+env.Clean("distclean",
+          [".sconf_temp", ".scons-option-cache", ".sconsign.dblite"])
+
  if qt_env:
      build_qt = qt_env.Alias('build', [compiled_qgpsmmlib])
      qt_env.Default(*build_qt)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]