diff options
-rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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') |