Drop the redundant build rule for literate Perl scripts
authorAndrey Mokhov <andrey.mokhov@gmail.com>
Sat, 7 Oct 2017 22:26:08 +0000 (23:26 +0100)
committerAndrey Mokhov <andrey.mokhov@gmail.com>
Sat, 7 Oct 2017 22:26:08 +0000 (23:26 +0100)
hadrian.cabal
src/Rules.hs
src/Rules/Perl.hs [deleted file]

index 97b283a..48514e1 100644 (file)
@@ -54,7 +54,6 @@ executable hadrian
                        , Rules.Install
                        , Rules.Libffi
                        , Rules.Library
-                       , Rules.Perl
                        , Rules.Program
                        , Rules.Register
                        , Rules.Selftest
index ea3df45..730823f 100644 (file)
@@ -17,7 +17,6 @@ import qualified Rules.Configure
 import qualified Rules.Gmp
 import qualified Rules.Libffi
 import qualified Rules.Library
-import qualified Rules.Perl
 import qualified Rules.Program
 import qualified Rules.Register
 import Settings
@@ -115,7 +114,6 @@ buildRules = do
     Rules.Gmp.gmpRules
     Rules.Libffi.libffiRules
     packageRules
-    Rules.Perl.perlScriptRules
 
 oracleRules :: Rules ()
 oracleRules = do
diff --git a/src/Rules/Perl.hs b/src/Rules/Perl.hs
deleted file mode 100644 (file)
index bc8b01f..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-module Rules.Perl (perlScriptRules) where
-
-import Base
-import Builder
-
--- TODO: Do we need this build rule?
--- | Build Perl scripts, such as @ghc-split@, from their literate Perl sources.
-perlScriptRules :: Rules ()
-perlScriptRules = do
-    "//*.prl" %> \out -> do
-        let src = out -<.> "lprl"
-        need [src]
-        runBuilder Unlit [src, out] [src] [out]