From cde31929dff3e1ff006071df5d2c690472c64a6f Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Wed, 22 Apr 2026 19:04:21 +1000 Subject: feat(Makefile): Use user-specified gdb debug tests --- Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3a12815..aa71230 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,15 @@ test-png: clean test: test-png +# $(TEST) is passed in via `make gdb TEST=` +# NOTE: should be the name of the test target's output binary +# inside the Makefile but cannot be the more generic 'test' target +# +# +# +# WARNING: TEST does not have a default value + gdb: debug - gdb -x debug/.gdbinit - -.PHONY: all clean debug release asan test test-png gdb + gdb -x debug/.gdbinit $(OUTDIR)/$(TEST) + +.PHONY: all clean debug release asan test test-png gdb \ No newline at end of file -- cgit v1.2.3