[commit: ghc] wip/nfs-locking: Add Config.hs (autoconf and configure rules). (9566d56)

git at git.haskell.org git at git.haskell.org
Thu Oct 26 23:43:35 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/nfs-locking
Link       : http://ghc.haskell.org/trac/ghc/changeset/9566d564272d1762d8f0eca492b17673ca0af55c/ghc

>---------------------------------------------------------------

commit 9566d564272d1762d8f0eca492b17673ca0af55c
Author: Andrey Mokhov <andrey.mokhov at ncl.ac.uk>
Date:   Tue Dec 23 17:45:51 2014 +0000

    Add Config.hs (autoconf and configure rules).


>---------------------------------------------------------------

9566d564272d1762d8f0eca492b17673ca0af55c
 Config.hs | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/Config.hs b/Config.hs
new file mode 100644
index 0000000..a370f38
--- /dev/null
+++ b/Config.hs
@@ -0,0 +1,24 @@
+module Config (
+    autoconfRules, configureRules
+    ) where
+
+import Development.Shake
+import Development.Shake.Command
+import Development.Shake.FilePath
+import Development.Shake.Rule
+import Control.Applicative
+import Control.Monad
+import Base
+import Oracles
+
+autoconfRules :: Rules ()
+autoconfRules = do
+    "shake/configure" %> \out -> do
+        need ["shake/configure.ac"]
+        cmd $ "bash shake/autoconf"
+
+configureRules :: Rules ()
+configureRules = do
+    "shake/default.config" %> \out -> do
+        need ["shake/default.config.in", "shake/configure"]
+        cmd $ "bash shake/configure"



More information about the ghc-commits mailing list