aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bf9cfcc5344..84f137e242a 100644
--- a/Makefile
+++ b/Makefile
@@ -223,6 +223,7 @@ help:
@echo " ctags - (re)generate ctags database"
@echo " gtags - (re)generate gtags database"
@echo " cscope - (re)generate cscope database"
+ @echo " compdb - (re)generate compile_commands.json"
@echo " checkstyle - check coding style"
@echo " checkstyle-commit - check commit message format"
@echo " checkstyle-test - check test framework coding style"
@@ -654,6 +655,10 @@ gtags: ctags
cscope: cscope.files
@cscope -b -q -v
+.PHONY: compdb
+compdb:
+ @ninja -C build-root/build-vpp_debug-native/vpp -t compdb > compile_commands.json
+
.PHONY: checkstyle
checkstyle: checkfeaturelist
@build-root/scripts/checkstyle.sh