aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)