Added clean target.

pull/15/head
Jussi Pakkanen 12 years ago
parent 5f6c928e2b
commit bbed8ec3d1
  1. 4
      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()]

Loading…
Cancel
Save