From f1f2b2a163e93eb51e68d2ea779be6a5701a6045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20=C3=85gren?= Date: Fri, 11 Apr 2025 11:55:04 +0200 Subject: [PATCH] fw: Use globbing for FMTFILES --- hw/application_fpga/fw/testapp/Makefile | 4 +--- hw/application_fpga/fw/testfw/Makefile | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/hw/application_fpga/fw/testapp/Makefile b/hw/application_fpga/fw/testapp/Makefile index 79c1006..afc13f8 100644 --- a/hw/application_fpga/fw/testapp/Makefile +++ b/hw/application_fpga/fw/testapp/Makefile @@ -50,9 +50,7 @@ all: testapp.bin tkey-libs: make -C $(LIBDIR) -TESTAPP_FMTFILES = \ - $(P)/main.c \ - $(P)/syscall.h +TESTAPP_FMTFILES = *.[ch] TESTAPP_OBJS = \ $(P)/main.o \ diff --git a/hw/application_fpga/fw/testfw/Makefile b/hw/application_fpga/fw/testfw/Makefile index 82b9262..316aba9 100644 --- a/hw/application_fpga/fw/testfw/Makefile +++ b/hw/application_fpga/fw/testfw/Makefile @@ -1,5 +1,5 @@ # Uses ../.clang-format -FMTFILES=main.c +FMTFILES=*.[ch] .PHONY: fmt fmt: clang-format --dry-run --ferror-limit=0 $(FMTFILES)