diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d72f311 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +.PHONY: all +all: build.ninja + ninja + +.PHONY: clang-tidy +clang-tidy: compile_commands.json + ninja -t targets all | grep cxx | grep -v 3rdParty | sed -e's/\.o: cxx/.cpp/' | xargs -n 1 clang-tidy + +compile_commands.json: build.ninja + ninja -t compdb cxx > compile_commands.json + +build.ninja: + ./BuildTools/scons2ninja.py check=1 build_examples=0 |