Add a "make-command" utility Makefile function
authorIan Lynagh <igloo@earth.li>
Wed, 18 Aug 2010 18:30:55 +0000 (18:30 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 18 Aug 2010 18:30:55 +0000 (18:30 +0000)
ghc.mk
rules/make-command.mk [new file with mode: 0644]

diff --git a/ghc.mk b/ghc.mk
index fadaccd..2ac0d2a 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -147,6 +147,11 @@ endif
 endif
 
 # -----------------------------------------------------------------------------
+# Utility definitions
+
+include rules/make-command.mk
+
+# -----------------------------------------------------------------------------
 # Macros for standard targets
 
 include rules/all-target.mk
diff --git a/rules/make-command.mk b/rules/make-command.mk
new file mode 100644 (file)
index 0000000..9f44773
--- /dev/null
@@ -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