Makefile: add colors to run-debug

This commit is contained in:
2023-02-17 14:07:21 +01:00
parent a728a945e3
commit 7bfad91e2d

View File

@@ -1,5 +1,6 @@
SOURCES := $(shell find src/ -type f | grep -E '\.(h|c)(pp)?$$')
MAKE_OPTS := -j4
GDB_OPTS := -ex "set style enabled on"
.PHONY: help
help:
@@ -12,7 +13,7 @@ run: build
run-with-music: build
cd build && ./glowbox --enable-music
run-debug: build-debug | has-gdb
cd build-debug && gdb -batch -ex "run" -ex "backtrace" ./glowbox
cd build-debug && gdb -batch $(GDB_OPTS) -ex "run" -ex "backtrace" ./glowbox
.PHONY: build
build: build/glowbox