From bbed8ec3d11a3b852e43d0ac88208909d9901b8b Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 9 Mar 2013 23:43:49 +0200 Subject: [PATCH] Added clean target. --- backends.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backends.py b/backends.py index cf116a2e1..69855fc1e 100755 --- a/backends.py +++ b/backends.py @@ -567,6 +567,10 @@ class NinjaBackend(Backend): default = 'default all\n\n' outfile.write(default) + elem = NinjaBuildElement('clean', 'CUSTOM_COMMAND', '') + elem.add_item('COMMAND', ['ninja', '-t', 'clean']) + elem.add_item('description', 'Cleaning') + elem.write(outfile) deps = [os.path.join(self.build_to_src, df) \ for df in self.interpreter.get_build_def_files()]