From c363fb648153548d2d98220d56825407b7643fa3 Mon Sep 17 00:00:00 2001 From: Quinn Date: Wed, 9 Apr 2025 15:46:08 +0200 Subject: [PATCH] use bear whenever available, rather than only when debugging --- makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/makefile b/makefile index 27cac15..06c2225 100644 --- a/makefile +++ b/makefile @@ -2,7 +2,6 @@ # - make # - clang # - rustc -# - bear (debug) # - git bash (windows) NAME := mcaselector-lite DEBUG ?= 0 @@ -99,7 +98,7 @@ $(DIR): mkdir -p $@ # update compile commands if the makefile has been updated (for linting) -ifeq ($(DEBUG),1) +ifneq ($(shell which bear),) compile_commands.json: makefile $(MAKE) clean @touch compile_commands.json