build: move cscope rules to ninja

This commit is contained in:
Avi Kivity
2014-09-25 13:46:17 +03:00
parent a17d216d03
commit 24780a8a8a
2 changed files with 6 additions and 6 deletions

View File

@@ -8,8 +8,3 @@ build.ninja: configure.py
clean:
rm -rf $(out)
cscope:
find -name '*.[chS]' -o -name "*.cc" -o -name "*.hh" | cscope -bq -i-
@echo cscope index created
.PHONY: cscope

View File

@@ -120,4 +120,9 @@ with open(buildfile, 'w') as f:
command = python3 configure.py $configure_args
generator = 1
build build.ninja: configure | configure.py
'''))
rule cscope
command = find -name '*.[chS]' -o -name "*.cc" -o -name "*.hh" | cscope -bq -i-
description = CSCOPE
build cscope: cscope
default {modes_list}
''').format(modes_list = ' '.join(build_modes), **globals()))