1
0
mirror of https://github.com/pumpitupdev/pumptools.git synced 2024-09-23 19:08:23 +02:00

Makefile clang-format: Exclude import source files

These should not be formatted because external sources with their
own code style
This commit is contained in:
icex2 2023-03-02 19:08:51 +01:00
parent 6a411cf37a
commit e25d52c293

View File

@ -48,9 +48,12 @@ libc-version:
$(V)mkdir -p $(BUILDDIR)
$(V)echo "$(libcver)" > $(BUILDDIR)/libc-version
# Do not format external imports
.PHONY: clang-format # Apply code style defined in .clang-format style to all code in src/
clang-format:
$(V)find src/ -iname *.h -o -iname *.c | xargs clang-format -i -style=file
$(V)find src/api -iname *.h -o -iname *.c | xargs clang-format -i -style=file
$(V)find src/main -iname *.h -o -iname *.c | xargs clang-format -i -style=file
$(V)find src/test -iname *.h -o -iname *.c | xargs clang-format -i -style=file
.PHONY: package # Package the build output into distribution zip files
package: $(BUILDDIR)/pumptools.zip $(BUILDDIR)/pumptools-public.zip