From 2137602a6a2bb06b5fed92e27f855fed45d8af34 Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 22 Nov 2024 10:48:05 +0100 Subject: [PATCH] Makefile: Add support to run "make format" when compiling with mix --- Makefile.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 82073c367..050e219a0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -3,7 +3,8 @@ # ESCRIPT = @ESCRIPT@ -REBAR = @rebar@ +REBAR = @rebar@ # This rebar|rebar3|mix binary (or path to binary) +REBAR3 = @REBAR3@ # This is path to rebar3 binary MIX = @rebar@ AWK = @AWK@ INSTALL = @INSTALL@ @@ -266,7 +267,7 @@ _build/edoc/logo.png: edoc_compile # format: - tools/rebar3-format.sh $(REBAR) + tools/rebar3-format.sh $(REBAR3) indent: tools/emacs-indent.sh @@ -702,7 +703,7 @@ help: @echo " translations Extract translation files" @echo " TAGS Generate tags file for text editors" @echo "" - @echo " format Format source code using rebar3_format [rebar3]" + @echo " format Format source code using rebar3_format" @echo " indent Indent source code using erlang-mode [emacs]" @echo "" @echo " dialyzer Run Dialyzer static analyzer"