aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 447467c..97ca475 100644
--- a/Makefile
+++ b/Makefile
@@ -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)