From cc3cf3353f23dd2f87412d42f8c3d52f873711dd Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 25 Mar 2023 22:47:46 +0200 Subject: add formatter --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e6d4f71..0210cf2 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,7 @@ CC = gcc SOURCES := include src/source.mk +include gen/source.mk COMPILE = $(CROSS_COMPILE)$(CC) $(DEBUGFLAGS)\ $(CFLAGS) $(DEPFLAGS) $(COMPILEFLAGS) $(INCLUDEFLAGS) @@ -29,8 +30,10 @@ include deps.mk .PHONY: format format: - @find . -iname '*.[ch]' |\ - xargs -n 10 -P 0 uncrustify -c uncrustify.conf --no-backup -F - + @cd src; find . -iname '*.[ch]' |\ + xargs -n 10 -P 0 uncrustify -c ../uncrustify.conf --no-backup -F - + @cd include; find . -iname '*.[ch]' |\ + xargs -n 10 -P 0 uncrustify -c ../uncrustify.conf --no-backup -F - .PHONY: license license: -- cgit v1.3