mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 09:25:44 +01:00
use bear whenever available, rather than only when debugging
This commit is contained in:
3
makefile
3
makefile
@@ -2,7 +2,6 @@
|
|||||||
# - make
|
# - make
|
||||||
# - clang
|
# - clang
|
||||||
# - rustc
|
# - rustc
|
||||||
# - bear (debug)
|
|
||||||
# - git bash (windows)
|
# - git bash (windows)
|
||||||
NAME := mcaselector-lite
|
NAME := mcaselector-lite
|
||||||
DEBUG ?= 0
|
DEBUG ?= 0
|
||||||
@@ -99,7 +98,7 @@ $(DIR):
|
|||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
||||||
# update compile commands if the makefile has been updated (for linting)
|
# update compile commands if the makefile has been updated (for linting)
|
||||||
ifeq ($(DEBUG),1)
|
ifneq ($(shell which bear),)
|
||||||
compile_commands.json: makefile
|
compile_commands.json: makefile
|
||||||
$(MAKE) clean
|
$(MAKE) clean
|
||||||
@touch compile_commands.json
|
@touch compile_commands.json
|
||||||
|
|||||||
Reference in New Issue
Block a user