Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a "make-command" utility Makefile function

  • Loading branch information...
commit db286afd553884c362399042d00ee08656adafce 1 parent 0693e61
@igfoo igfoo authored
Showing with 26 additions and 0 deletions.
  1. +5 −0 ghc.mk
  2. +21 −0 rules/make-command.mk
View
5 ghc.mk
@@ -147,6 +147,11 @@ endif
endif
# -----------------------------------------------------------------------------
+# Utility definitions
+
+include rules/make-command.mk
+
+# -----------------------------------------------------------------------------
# Macros for standard targets
include rules/all-target.mk
View
21 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
Please sign in to comment.
Something went wrong with that request. Please try again.