summaryrefslogtreecommitdiff
path: root/rules/pretty_commands.mk
diff options
context:
space:
mode:
authorIavor S. Diatchki <diatchki@galois.com>2012-04-27 13:24:05 -0700
committerIavor S. Diatchki <diatchki@galois.com>2012-04-27 13:24:05 -0700
commitd209588a40928e21a253bc9341689b5174c00cfc (patch)
treee255855567a1d7b8916698cb808da65103bb090c /rules/pretty_commands.mk
parent3b528914877a8d45c2487988f05e6ecc092bebf1 (diff)
downloadhaskell-d209588a40928e21a253bc9341689b5174c00cfc.tar.gz
A build-system tweak for more readable build output.
This change reduces the (default) verbosity of the build system. This makes it easier to spot warnings in the output and, also, it makes it easier to estimate how far along are we in the build process by just glancing at the output. To get the traditional fully verbose output, set V=1, like this: make V=1
Diffstat (limited to 'rules/pretty_commands.mk')
-rw-r--r--rules/pretty_commands.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/rules/pretty_commands.mk b/rules/pretty_commands.mk
new file mode 100644
index 0000000000..cfd7fac2b6
--- /dev/null
+++ b/rules/pretty_commands.mk
@@ -0,0 +1,13 @@
+ifneq ($(V),1)
+cmd = @echo ' $(if $(label_$1),$(label_$1),$1) $@'; "$($1)"
+else
+cmd = "$($1)"
+endif
+
+label_ALEX=ALEX
+label_HAPPY=HAPPY
+label_HSC2HS_INPLACE=HSC2HS
+
+
+
+