diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-04-30 17:17:26 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-04-30 17:17:26 +0300 |
| commit | a0aa77de0751584048992a14081a2e533eec463f (patch) | |
| tree | beff2d8f6afdc2a26b8913b0248fceeca2530ff3 /Makefile | |
| parent | dbcb4228e0301c241b5d921fd64e6d6139f714e3 (diff) | |
| download | ek-a0aa77de0751584048992a14081a2e533eec463f.tar.gz ek-a0aa77de0751584048992a14081a2e533eec463f.zip | |
add linting
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -3,6 +3,7 @@ DO != echo -n > deps.mk DEBUGFLAGS != [ $(RELEASE) ] && echo "-flto=auto -O2 -DNODEBUG" || echo "-O0 -g -DDEBUG" CFLAGS = -Wall -Wextra DEPFLAGS = -MT $@ -MMD -MP -MF $@.d +LINTFLAGS = -fsyntax-only INCLUDEFLAGS = -Iinclude COMPILEFLAGS = LINKFLAGS = @@ -23,16 +24,19 @@ include gen/source.mk COMPILE = $(CROSS_COMPILE)$(CC) $(DEBUGFLAGS)\ $(CFLAGS) $(DEPFLAGS) $(COMPILEFLAGS) $(INCLUDEFLAGS) +LINT = $(COMPILE) $(LINTFLAGS) + OBJS != ./scripts/gen-deps --sources "$(SOURCES)" include deps.mk +.PHONY: lint +lint: $(OBJS:.o=.o.l) + .PHONY: format format: - @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 - + @find src include tests -iname '*.[ch]' |\ + xargs -n 10 -P 0 uncrustify -c uncrustify.conf --no-backup -F - .PHONY: license license: |
