From 42cd075421584e0fb92121fb1872f3d6c71b6534 Mon Sep 17 00:00:00 2001 From: xesc Date: Tue, 8 Oct 2024 14:55:58 +0200 Subject: [PATCH] makefile: add run target --- makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 24aee5e..18eac52 100644 --- a/makefile +++ b/makefile @@ -1,7 +1,11 @@ -.PHONY: all debug -all: src/wta.c +.PHONY: debug release run + +release: src/wta.c gcc -o build/wta -O2 -Wall -Wextra -pedantic -Werror src/wta.c +run: release + ./build/wta + debug: src/wta.c gcc -o build/wta -ggdb3 -DDEBUG -Wall -Wextra -pedantic -Werror src/wta.c