1
0
Fork 0
mirror of https://gitlab.com/niansa/libcrosscoro.git synced 2025-03-06 20:53:32 +01:00
libcrosscoro/Makefile
2021-01-16 20:27:11 -07:00

20 lines
701 B
Makefile

# Internal target for all build targets to call.
# Cleans all build types.
.PHONY: clean
clean:
rm -rf Debug
rm -rf RelWithDebInfo
rm -rf Release
# Runs clang-format with the project's .clang-format.
.PHONY: format
format:
# Inlcude *.hpp|*.h|*.cpp but ignore catch lib as well as RelWithDebInfo|Release|Debug|build
find . \( -name '*.hpp' -or -name '*.h' -or -name '*.cpp' \) \
-and -not -name '*catch*' \
-and -not -iwholename '*/RelWithDebInfo/*' \
-and -not -iwholename '*/Release/*' \
-and -not -iwholename '*/Debug/*' \
-and -not -iwholename '*/build/*' \
-and -not -iwholename '*/vendor/*' \
-exec clang-format -i --style=file {} \;