diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -20,7 +20,7 @@ bear: bear intercept -- $(MAKE) all bear citnames -all: build $(BINS) +all: lint build $(BINS) run: all @for BIN in $(BINS); do \ @@ -28,6 +28,9 @@ run: all $$BIN; \ done +lint: + clang-format --dry-run -Werror $(shell find -name '*.cc' -o -name '*.h') + build/%: build/%.o $(CXX) -o $@ $< $(LDFLAGS) |