From 90730e40a3f63aa9b1638f8079d1bfe0825f4bca Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Wed, 6 Feb 2013 11:10:06 +0100 Subject: [PATCH 1/2] Ensure ./build.py -c cleans examples/example-list.xml --- build.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 3349b31c0c..1e5ff4cf19 100755 --- a/build.py +++ b/build.py @@ -152,7 +152,12 @@ def build_src_internal_types_js(t): virtual('build-examples', 'examples', (path.replace('.html', '.combined.js') for path in EXAMPLES)) -virtual('examples', 'examples/example-list.js', (path.replace('.html', '.json') for path in EXAMPLES)) +virtual('examples', 'examples/example-list.xml', (path.replace('.html', '.json') for path in EXAMPLES)) + + +@target('examples/example-list.xml', 'examples/example-list.js') +def examples_examples_list_xml(t): + t.touch() # already generated by bin/exampleparser.py @target('examples/example-list.js', 'bin/exampleparser.py', EXAMPLES) From 91141f5c01ee74998f08f4ef0d6422c4c5eaa147 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Wed, 6 Feb 2013 11:25:15 +0100 Subject: [PATCH 2/2] Build precommit target by default so precommit dependencies get cleaned by default --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index 1e5ff4cf19..d6198bb5ee 100755 --- a/build.py +++ b/build.py @@ -76,7 +76,7 @@ def report_sizes(t): t.info(' compressed: %d bytes', len(stringio.getvalue())) -virtual('all', 'build-all', 'build', 'examples') +virtual('all', 'build-all', 'build', 'examples', 'precommit') virtual('precommit', 'lint', 'build-all', 'test', 'build', 'build-examples', 'doc')