summaryrefslogtreecommitdiff
path: root/rules/make-command.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-08-18 18:30:55 +0000
committerIan Lynagh <igloo@earth.li>2010-08-18 18:30:55 +0000
commitdb286afd553884c362399042d00ee08656adafce (patch)
tree3cc7207b72ac98160eadd96c9bfd4a50d3fcde4e /rules/make-command.mk
parent0693e611c20365dae3eb2cd5762b6c2f8e735e72 (diff)
downloadhaskell-db286afd553884c362399042d00ee08656adafce.tar.gz
Add a "make-command" utility Makefile function
Diffstat (limited to 'rules/make-command.mk')
-rw-r--r--rules/make-command.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/rules/make-command.mk b/rules/make-command.mk
new file mode 100644
index 0000000000..9f447739f9
--- /dev/null
+++ b/rules/make-command.mk
@@ -0,0 +1,21 @@
+# -----------------------------------------------------------------------------
+#
+# (c) 2010 The University of Glasgow
+#
+# This file is part of the GHC build system.
+#
+# To understand how the build system works and how to modify it, see
+# http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
+# http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying
+#
+# -----------------------------------------------------------------------------
+
+# $1 = the line
+# The formatting of this definition (in particular, the blank line at
+# the start) is important, in order to get make to generate the right
+# makefile code.
+
+define make-command
+
+ $1
+endef