aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-03-25 22:47:46 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2023-03-25 22:47:46 +0200
commitcc3cf3353f23dd2f87412d42f8c3d52f873711dd (patch)
tree94336a9ccee6451baeca51abff53da7e7e9c6230 /Makefile
parentbb261ad231c3683a36d516c4caf9b2a06ce0145f (diff)
downloadek-cc3cf3353f23dd2f87412d42f8c3d52f873711dd.tar.gz
ek-cc3cf3353f23dd2f87412d42f8c3d52f873711dd.zip
add formatter
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
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: