summaryrefslogtreecommitdiff
path: root/ocamldoc/Makefile
diff options
context:
space:
mode:
authorXavier Leroy <xavierleroy@users.noreply.github.com>2023-01-18 03:38:49 -0500
committerGitHub <noreply@github.com>2023-01-18 09:38:49 +0100
commit60260ec72adf6fb542ef022a2d58b26e966ba66a (patch)
treed14db4c11d5ad818c00ae947088ca7661fe76fc8 /ocamldoc/Makefile
parentea02425ac683e3d8469a47d9b21e8389fa4a5a59 (diff)
downloadocaml-60260ec72adf6fb542ef022a2d58b26e966ba66a.tar.gz
Less verbose logs from `make` (#11844)
Print concise summaries instead of full commands for some of the most verbose commands. For example, print ``` OCAMLC lambda/switch.cmo ``` instead of ``` ./boot/ocamlrun ./boot/ocamlc -nostdlib -I ./boot -use-prims runtime/primitives -g -strict-sequence -principal -absname -w +a-4-9-40-41-42-44-45-48 -warn-error +a -bin-annot -strict-formats -I lambda -I utils -I parsing -I typing -I bytecomp -I file_formats -I lambda -I middle_end -I middle_end/closure -I middle_end/flambda -I middle_end/flambda/base_types -I asmcomp -I driver -I toplevel -I tools -c lambda/switch.ml ``` and ``` CC runtime/addrmap.b.o ``` instead of ``` gcc -c -O2 -fno-strict-aliasing -fwrapv -pthread -g -Wall -Werror -fno-common -fexcess-precision=standard -fno-tree-vrp -ffunction-sections -I./runtime -D_FILE_OFFSET_BITS=64 -DCAMLDLLIMPORT= -DIN_CAML_RUNTIME -o runtime/addrmap.b.o runtime/addrmap.c ``` The output is generated with the Make function `$(info ...)` to avoid shelling out to `echo` each time, which can be expensive under Cygwin. A variable `V` controls whether to use the new style. When `V=0` (the default), it is used. If `V=1`, then the usual full output is used instead. Co-authored-by: Nicolás Ojeda Bär <n.oje.bar@gmail.com>
Diffstat (limited to 'ocamldoc/Makefile')
-rw-r--r--ocamldoc/Makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/ocamldoc/Makefile b/ocamldoc/Makefile
index 148f48e602..d42bd11e34 100644
--- a/ocamldoc/Makefile
+++ b/ocamldoc/Makefile
@@ -162,18 +162,18 @@ OCAMLDOC_NCLIBRARIES = $(OCAMLDOC_LIBRARIES:%=%.cmxa)
$(eval $(call PROGRAM_SYNONYM,ocamldoc))
$(OCAMLDOC): $(EXECMOFILES)
- $(OCAMLC) -o $@ -linkall $(LINKFLAGS) $(OCAMLDOC_BCLIBRARIES) $^
+ $(V_LINKC)$(OCAMLC) -o $@ -linkall $(LINKFLAGS) $(OCAMLDOC_BCLIBRARIES) $^
$(eval $(call PROGRAM_SYNONYM,ocamldoc.opt))
$(OCAMLDOC_OPT): $(EXECMXFILES)
- $(OCAMLOPT_CMD) -o $@ -linkall $(LINKFLAGS) $(OCAMLDOC_NCLIBRARIES) $^
+ $(V_LINKOPT)$(OCAMLOPT_CMD) -o $@ -linkall $(LINKFLAGS) $(OCAMLDOC_NCLIBRARIES) $^
$(OCAMLDOC_LIBCMA): $(LIBCMOFILES)
- $(OCAMLC) -a -o $@ $(LINKFLAGS) $^
+ $(V_LINKC)$(OCAMLC) -a -o $@ $(LINKFLAGS) $^
$(OCAMLDOC_LIBCMXA): $(LIBCMXFILES)
- $(OCAMLOPT) -a -o $@ $(LINKFLAGS) $^
+ $(V_LINKOPT)$(OCAMLOPT) -a -o $@ $(LINKFLAGS) $^
.PHONY: dot
dot: ocamldoc.dot
@@ -195,16 +195,16 @@ DEPEND_PREREQS = $(LEXERS:.mll=.ml) \
#################
%.cmo: %.ml
- $(OCAMLC) $(COMPFLAGS) -c $<
+ $(V_OCAMLC)$(OCAMLC) $(COMPFLAGS) -c $<
%.cmi: %.mli
- $(OCAMLC) $(COMPFLAGS) -c $<
+ $(V_OCAMLC)$(OCAMLC) $(COMPFLAGS) -c $<
%.cmx: %.ml
- $(OCAMLOPT) $(COMPFLAGS) -c $<
+ $(V_OCAMLOPT)$(OCAMLOPT) $(COMPFLAGS) -c $<
%.cmxs: %.ml
- $(OCAMLOPT_CMD) -shared -o $@ $(COMPFLAGS) $<
+ $(V_OCAMLOPT)$(OCAMLOPT_CMD) -shared -o $@ $(COMPFLAGS) $<
# Installation targets
######################