aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index fe046c9..c8a3df8 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ TEST += latch
BINS = $(TEST:%=build/%)
DEPS = $(TEST:%=build/%.d)
+RUNS = $(TEST:%=run/%)
# -- FLAGS ---------------------------------------------------------------------
@@ -26,11 +27,11 @@ bear:
bear intercept -- $(MAKE) all
bear citnames
-run: all
- @for BIN in $(BINS); do \
- echo "==> run $$BIN"; \
- $$BIN; \
- done
+run: $(RUNS)
+
+run/%: build build/%
+ @echo "==> run $*"
+ build/$*
lint:
clang-format --dry-run -Werror $(shell find -name '*.cc' -o -name '*.h')