summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorJohn Högberg <john@erlang.org>2020-07-09 09:05:30 +0200
committerLukas Larsson <lukas@erlang.org>2020-09-21 16:40:30 +0200
commit24d61192324b66bf50c75430b6a038346c2942d4 (patch)
tree2c349003c00284794ed0e6e410bbdef0a1998a54 /Makefile.in
parentf36e3c4b0affd13f71d241d2417c0aac71df2142 (diff)
downloaderlang-24d61192324b66bf50c75430b6a038346c2942d4.tar.gz
otp: Add clang_format rule based on LLVM style
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index c1bf51664b..f8faea1290 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -533,6 +533,9 @@ compdb:
(cd erts/emulator && ERL_TOP=$(ERL_TOP) TYPE=$(TYPE) $(MAKE) compdb)
sed -i -e '1s/^/[\n/' -e '$$s/,$$/\n]/' $(ERL_TOP)/compile_commands.json
+clang_format:
+ (cd erts/emulator && ERL_TOP=$(ERL_TOP) $(MAKE) clang_format)
+
dep depend:
$(make_verbose)
$(V_at)test X"$$ERTS_SKIP_DEPEND" = X"true" || (cd erts/emulator && PATH=$(BOOT_PREFIX)"$${PATH}" ERL_TOP=$(ERL_TOP) $(MAKE) generate)