From 26f0cbe721028bdd1733db3424d38490c3f85b94 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Mon, 3 Jul 2023 18:22:22 +0200 Subject: make: bear as new default target, add run target --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b5d6cf8..447467c 100644 --- a/Makefile +++ b/Makefile @@ -14,12 +14,20 @@ SANITIZER = -fsanitize=address -fsanitize=undefined -fsanitize=leak -fno-omit-fr CXXFLAGS = -Og -g -Wall -Wextra -Werror -I. -std=c++14 $(DEPS_GEN) $(SANITIZER) LDFLAGS = $(SANITIZER) -all: build $(BINS) +# -- RULES --------------------------------------------------------------------- bear: bear intercept -- $(MAKE) all bear citnames +all: build $(BINS) + +run: all + @for BIN in $(BINS); do \ + echo "==> run $$BIN"; \ + $$BIN; \ + done + build/%: build/%.o $(CXX) -o $@ $< $(LDFLAGS) -- cgit v1.2.3