diff --git a/Makefile b/Makefile index 97e8385b66..ee36e700e8 100644 --- a/Makefile +++ b/Makefile @@ -2757,7 +2757,7 @@ endif compdb_dir = compile_commands ifeq ($(GENERATE_COMPILATION_DATABASE),yes) -missing_compdb_dir = $(compdb_dir) +missing_compdb_dir = $(filter-out $(wildcard $(compdb_dir)), $(compdb_dir)) $(missing_compdb_dir): @mkdir -p $@