about summary refs log tree commit diff
path: root/tracing.mk
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-01-10T21·31+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-01-10T21·31+0100
commitca73c0102fc68ece171d7cc062e464b4d418d07c (patch)
treed35048277993d852c173bdf6d2ffbe78bff1ec67 /tracing.mk
parente991ab942b6ed1bc50a63afafe55ffe5cae8cbad (diff)
Nicer Make output
E.g.

  CXX    src/nix-log2xml/log2xml.o
  CC     src/bsdiff-4.3/bsdiff.o
  GEN    scripts/nix-channel
  LD     src/libmain/libnixmain.so
Diffstat (limited to 'tracing.mk')
-rw-r--r--tracing.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/tracing.mk b/tracing.mk
new file mode 100644
index 000000000000..08c4ec106656
--- /dev/null
+++ b/tracing.mk
@@ -0,0 +1,16 @@
+V ?= 0
+
+ifeq ($(V), 0)
+
+  trace-gen     = @echo "  GEN   " $@;
+  trace-cc      = @echo "  CC    " $@;
+  trace-cxx     = @echo "  CXX   " $@;
+  trace-ld      = @echo "  LD    " $@;
+  trace-ar      = @echo "  AR    " $@;
+  trace-install = @echo "  INST  " $@;
+  trace-javac   = @echo "  JAVAC " $@;
+  trace-jar     = @echo "  JAR   " $@;
+
+  suppress  = @
+
+endif