mirror of
https://github.com/pumpitupdev/pumptools.git
synced 2024-11-23 22:50:56 +01: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:
parent
6a411cf37a
commit
e25d52c293
5
Makefile
5
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user