aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-07-03 18:22:22 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-07-03 18:22:22 +0200
commit26f0cbe721028bdd1733db3424d38490c3f85b94 (patch)
treedcea0804e7f0ce2f01c751857b62aac1daa12ea8 /Makefile
parent966eb6646450fec69cbd4b314d1c48afdfcd6330 (diff)
downloadcpp-utils-26f0cbe721028bdd1733db3424d38490c3f85b94.tar.gz
cpp-utils-26f0cbe721028bdd1733db3424d38490c3f85b94.zip
make: bear as new default target, add run target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
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)