From 64df55e0b65d74e37987333a33a53ae98378bed2 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 25 Apr 2022 13:45:01 +0200 Subject: code style update + make format works now --- makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'makefile') diff --git a/makefile b/makefile index 0f00eaf..01b7bb4 100644 --- a/makefile +++ b/makefile @@ -11,6 +11,7 @@ LDFLAGS=-Wl,-gc-sections -lpololu_$(DEVICE) -Wl,-relax PORT ?= /dev/ttyACM0 SOURCES := $(wildcard *.c) +HEADERS := $(wildcard *.h) OBJECTS := $(patsubst %.c,%.o, $(SOURCES)) AVRDUDE=avrdude @@ -35,7 +36,7 @@ flash: out.hex $(AVRDUDE) -p $(AVRDUDE_DEVICE) -c avrisp2 -P $(PORT) -U flash:w:out.hex format: - find . -name '*.c' -o -name '*.h' | clang-format -i + clang-format -i $(SOURCES) $(HEADERS) compile_commands: clean bear -- make -- cgit v1.2.3