Last active
December 16, 2015 02:38
-
-
Save spl/5363469 to your computer and use it in GitHub Desktop.
This is a simple example of using Shake (version 0.10.2). It demonstrates how to copy an input file to an output file with a file that is an additional dependency for a target even though it is not used in the rule itself.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# OPTIONS_GHC -Wall #-} | |
module Main where | |
import Development.Shake | |
main :: IO () | |
main = shakeArgs shakeOptions $ do | |
want ["output-file"] | |
"output-file" *> \dst -> do | |
need ["dependency-file"] | |
copyFile' "input-file" dst |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment