diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-03-31 05:57:25 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-03-31 05:57:25 -0400 |
commit | 445b7dd1fce13aa55f9579d8b29a05a9eedf2247 (patch) | |
tree | bd5523a342e27d26510309e3ab5a49bb26e1b528 /SConstruct | |
parent | fd2bc845e965100ca34a5cc7475387cc48030a7e (diff) | |
download | gpsd-445b7dd1fce13aa55f9579d8b29a05a9eedf2247.tar.gz |
Make scons -c clean web files.
Also, add 'sconsclean' that nukes scons dotfiles.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -13,8 +13,8 @@ # website - refresh the website # release - ship a release # -# clean - clean all normal build targets -# distclean - clean up to a state like a fresh repo pull +# clean - clean all normal build targets +# sconsclean - clean up scons dotfiles # # Setting the DESTDIR environment variable will prefix the install destinations # without changing the --prefix prefix. @@ -1688,7 +1688,7 @@ flocktest = Utility("flocktest", [], "cd devtools; ./flocktest " + gitrepo) # Run all normal regression tests describe = Utility('describe', [], ['@echo "Run normal regression tests for %s..."' %(rev.strip(),)]) -testclean = Utility('test_cleanup', [], +testclean = Utility('testclean', [], 'rm -f test_bits test_matrix test_geoid test_json test_libgps test_mktime test_packet') check = env.Alias('check', [ describe, @@ -1742,7 +1742,6 @@ htmlpages = Split('''www/installation.html www/libgpsd.html www/libgpsmm.html www/libgps.html www/srec.html www/writing-a-driver.html www/hardware.html www/performance/performance.html www/internals.html - www/cycle.svg ''') webpages = htmlpages + asciidocs + map(lambda f: f[:-3], glob.glob("www/*.in")) @@ -1866,14 +1865,11 @@ Utility('udev-test', '', [ # Ordinary cleanup clean = env.Clean(build, map(glob.glob,("*.[oa]", "*.[1358]", "*.os", "*.os.*", "*.gcno", "*.pyc", "gps/*.pyc", "TAGS", "config.log","lib*.so*","lib*.a","gps-*egg-info","contrib/ppscheck","*.gcda")) + testprogs + \ - generated_sources + base_manpages.keys() + \ + generated_sources + base_manpages.keys() + webpages + \ map(lambda f: f[:-3], templated)) -# Clean up web directory -webclean = env.Clean(www, []) - -# Clean up to a close approximation of a fresh repository pull -distclean = env.Alias('distclean', [clean, testclean, webclean]) +# Nuke scons state files +sconsclean = Utility("sconsclean", '', ["rm -f .sconsign.dblite .sconf_temp .scons-option-cache config.log"]) # Tags for Emacs and vi misc_sources = ['cgps.c', 'gpsctl.c', 'gpsdctl.c', 'gpspipe.c', |