Perl.hs 319 Bytes
Newer Older
Moritz Angermann's avatar
Moritz Angermann committed
1
2
3
module Rules.Perl (perlScriptRules) where

import Base
4
import Utilities
Moritz Angermann's avatar
Moritz Angermann committed
5

6
-- | Build Perl scripts, such as @ghc-split@, from their literate Perl sources.
Moritz Angermann's avatar
Moritz Angermann committed
7
8
9
10
perlScriptRules :: Rules ()
perlScriptRules = do
    "//*.prl" %> \out -> do
        let src = out -<.> "lprl"
11
        need [src]
Moritz Angermann's avatar
Moritz Angermann committed
12
        runBuilder Unlit [src, out]