summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2020-10-23 17:20:32 +0200
committerDamjan Marion <dmarion@me.com>2020-10-24 09:14:11 +0000
commitf4ca4843dd7b611f2915caedc0abd7988ec1e8cd (patch)
treefda079a0cf50e5fb1ed2bb4c404a1a5b9baad06e /Makefile
parentac948ce17fb3207d7f45578ec016089cb6860340 (diff)
build: add compile_commands.json cleanup script
Type: make Change-Id: I8d6a5018bddf029e106df3cb8b8eded4fa28067d Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3bdba65a8e5..aaba277ec28 100644
--- a/Makefile
+++ b/Makefile
@@ -606,7 +606,9 @@ cscope: cscope.files
.PHONY: compdb
compdb:
- @ninja -C build-root/build-vpp_debug-native/vpp -t compdb > compile_commands.json
+ @ninja -C build-root/build-vpp_debug-native/vpp build.ninja
+ @ninja -C build-root/build-vpp_debug-native/vpp -t compdb | \
+ extras/scripts/compdb_cleanup.py > compile_commands.json
.PHONY: checkstyle
checkstyle: checkfeaturelist