On 22/04/15 06:15, Spooge wrote: > On 04/22/2015 04:00 AM, [email protected] wrote: >> Hi, >> >> I tried writing (actually, generating) a Tupfile, and it is my >> impression that rules that generate files must precede rules that use >> those generated files. Is that correct? >> >> I was a bit surprised by this, since it's usually a build system's >> task to perform topological sorting. > If you specify generated file dependencies in the rule, Tup should order > them for you automatically. Tup should also give you an error if you > are missing required dependencies. >
Thanks for the answer. Then I must be doing something wrong. My Tupfile is attached. Here's the error I'm seeing with it: tup error: Explicitly named file 'Tasty.hi' not found in subdir 'Test' tup error: Error parsing Tupfile line 2 Line was: ': example/ex.hs | Test/Tasty.hi |> zsh -c 'ghc -c example/ex.hs' |> example/ex.hi example/ex.o' Given that Test/Tasty.hi is listed as a generated file on the next line, why is tup expecting it to be in the filesystem? Roman -- -- tup-users mailing list email: [email protected] unsubscribe: [email protected] options: http://groups.google.com/group/tup-users?hl=en --- You received this message because you are subscribed to the Google Groups "tup-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
: Setup.hs | |> zsh -c 'ghc -c Setup.hs' |> Setup.hi Setup.o : example/ex.hs | Test/Tasty.hi |> zsh -c 'ghc -c example/ex.hs' |> example/ex.hi example/ex.o : Test/Tasty.hs | Test/Tasty/Core.hi Test/Tasty/Runners.hi Test/Tasty/Options.hi Test/Tasty/Options/Core.hi Test/Tasty/Ingredients/Basic.hi |> zsh -c 'ghc -c Test/Tasty.hs' |> Test/Tasty.hi Test/Tasty.o : Test/Tasty/Run.hs | Test/Tasty/Core.hi Test/Tasty/Parallel.hi Test/Tasty/Options.hi Test/Tasty/Options/Core.hi Test/Tasty/Runners/Reducers.hi |> zsh -c 'ghc -c Test/Tasty/Run.hs' |> Test/Tasty/Run.hi Test/Tasty/Run.o : Test/Tasty/Ingredients.hs | Test/Tasty/Core.hi Test/Tasty/Run.hi Test/Tasty/Options.hi Test/Tasty/Options/Core.hi |> zsh -c 'ghc -c Test/Tasty/Ingredients.hs' |> Test/Tasty/Ingredients.hi Test/Tasty/Ingredients.o : Test/Tasty/Patterns.hs | Test/Tasty/Options.hi |> zsh -c 'ghc -c Test/Tasty/Patterns.hs' |> Test/Tasty/Patterns.hi Test/Tasty/Patterns.o : Test/Tasty/Parallel.hs | |> zsh -c 'ghc -c Test/Tasty/Parallel.hs' |> Test/Tasty/Parallel.hi Test/Tasty/Parallel.o : Test/Tasty/CmdLine.hs | Test/Tasty/Core.hi Test/Tasty/Ingredients.hi Test/Tasty/Options.hi Test/Tasty/Options/Env.hi Test/Tasty/Runners/Reducers.hi |> zsh -c 'ghc -c Test/Tasty/CmdLine.hs' |> Test/Tasty/CmdLine.hi Test/Tasty/CmdLine.o : Test/Tasty/Options.hs | |> zsh -c 'ghc -c Test/Tasty/Options.hs' |> Test/Tasty/Options.hi Test/Tasty/Options.o : Test/Tasty/Runners.hs | Test/Tasty/Core.hi Test/Tasty/Run.hi Test/Tasty/Ingredients.hi Test/Tasty/Options/Core.hi Test/Tasty/Patterns.hi Test/Tasty/CmdLine.hi Test/Tasty/Ingredients/Basic.hi Test/Tasty/Runners/Reducers.hi Test/Tasty/Runners/Utils.hi |> zsh -c 'ghc -c Test/Tasty/Runners.hs' |> Test/Tasty/Runners.hi Test/Tasty/Runners.o : Test/Tasty/Providers.hs | Test/Tasty/Core.hi |> zsh -c 'ghc -c Test/Tasty/Providers.hs' |> Test/Tasty/Providers.hi Test/Tasty/Providers.o : Test/Tasty/Core.hs | Test/Tasty/Options.hi Test/Tasty/Patterns.hi |> zsh -c 'ghc -c Test/Tasty/Core.hs' |> Test/Tasty/Core.hi Test/Tasty/Core.o : Test/Tasty/Runners/Utils.hs | |> zsh -c 'ghc -c Test/Tasty/Runners/Utils.hs' |> Test/Tasty/Runners/Utils.hi Test/Tasty/Runners/Utils.o : Test/Tasty/Runners/Reducers.hs | |> zsh -c 'ghc -c Test/Tasty/Runners/Reducers.hs' |> Test/Tasty/Runners/Reducers.hi Test/Tasty/Runners/Reducers.o : Test/Tasty/Ingredients/ConsoleReporter.hs | Test/Tasty/Core.hi Test/Tasty/Run.hi Test/Tasty/Ingredients.hi Test/Tasty/Options.hi Test/Tasty/Runners/Reducers.hi Test/Tasty/Runners/Utils.hi |> zsh -c 'ghc -c Test/Tasty/Ingredients/ConsoleReporter.hs' |> Test/Tasty/Ingredients/ConsoleReporter.hi Test/Tasty/Ingredients/ConsoleReporter.o : Test/Tasty/Ingredients/IncludingOptions.hs | Test/Tasty/Ingredients.hi Test/Tasty/Options.hi |> zsh -c 'ghc -c Test/Tasty/Ingredients/IncludingOptions.hs' |> Test/Tasty/Ingredients/IncludingOptions.hi Test/Tasty/Ingredients/IncludingOptions.o : Test/Tasty/Ingredients/Basic.hs | Test/Tasty/Ingredients/ConsoleReporter.hi Test/Tasty/Ingredients/ListTests.hi Test/Tasty/Ingredients/IncludingOptions.hi |> zsh -c 'ghc -c Test/Tasty/Ingredients/Basic.hs' |> Test/Tasty/Ingredients/Basic.hi Test/Tasty/Ingredients/Basic.o : Test/Tasty/Ingredients/ListTests.hs | Test/Tasty/Core.hi Test/Tasty/Options.hi Test/Tasty/Ingredients.hi |> zsh -c 'ghc -c Test/Tasty/Ingredients/ListTests.hs' |> Test/Tasty/Ingredients/ListTests.hi Test/Tasty/Ingredients/ListTests.o : Test/Tasty/Options/Env.hs | Test/Tasty/Options.hi Test/Tasty/Core.hi Test/Tasty/Ingredients.hi Test/Tasty/Runners/Reducers.hi |> zsh -c 'ghc -c Test/Tasty/Options/Env.hs' |> Test/Tasty/Options/Env.hi Test/Tasty/Options/Env.o : Test/Tasty/Options/Core.hs | Test/Tasty/Options.hi Test/Tasty/Patterns.hi |> zsh -c 'ghc -c Test/Tasty/Options/Core.hs' |> Test/Tasty/Options/Core.hi Test/Tasty/Options/Core.o
