[Haskell-cafe] EDSL for Makefile
Emil Axelsson
emax at chalmers.se
Thu Sep 30 08:05:34 EDT 2010
How about:
execute ("gcc -c " ++ dependencyList ++ " -o " ++ target r1)
/ Emil
2010-09-30 10:41, C K Kashyap skrev:
> Also, I wanted some idea
> on how(in the current approach) I could make the target name and the
> dependency available to the action writer - as shown below.
>
> r1 = Rule {
> target = "file1",
> dependsOn = ["file2"],
> action = do
> execute ("gcc -c " ++ dependencyList ++ " -o " ++ target)
> }
>
>
More information about the Haskell-Cafe
mailing list