From 784367469264e0a97f17ca8cc08ff18f4b47ef3e Mon Sep 17 00:00:00 2001 From: klemek Date: Wed, 4 Jun 2025 00:18:26 +0200 Subject: [PATCH] better Makefile --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6781216..a8e2528 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,13 @@ +TARGET=mg + .PHONY: build clean: rm -rf build build: mkdir -p build - gcc -Wall src/*.c src/*.h -o build/mg + gcc -Wall src/*.c src/*.h -o build/$(TARGET) .PHONY: leak-test leak-test: clean build - valgrind --leak-check=full -s ./build/mg + valgrind --leak-check=full -s ./build/$(TARGET)