diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-07-03 18:22:22 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-07-03 18:22:22 +0200 |
commit | 26f0cbe721028bdd1733db3424d38490c3f85b94 (patch) | |
tree | dcea0804e7f0ce2f01c751857b62aac1daa12ea8 /Makefile | |
parent | 966eb6646450fec69cbd4b314d1c48afdfcd6330 (diff) | |
download | cpp-utils-26f0cbe721028bdd1733db3424d38490c3f85b94.tar.gz cpp-utils-26f0cbe721028bdd1733db3424d38490c3f85b94.zip |
make: bear as new default target, add run target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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) |