Although I didn't mention it in the earlier post, I also tried using the " | One.h " in my initial experiments. I also tried the explicit path. When I try the explicit path, I get:
* 1) [0.001s] build-default/progs/basic/src tup error: Expected node 'basic' to be in directory 'build-default/progs/basic/src', but it is not there. tup error: Failed to find directory ID for dir './basic/libgen/src/One.h' relative to 63 tup error: Error parsing Tupfile line 2 Line was: ': main.cpp | $(TUP_CWD)/basic/libgen/src/One.h |> g++ -Wall $(INCFLAGS) -g -c main.cpp |> main.o' Still no luck in making TUP happy with this setup. On Friday, November 14, 2014 11:36:32 AM UTC-8, Freddie Chopin wrote: > > On 11/14/2014 08:32 PM, Freddie Chopin wrote: > > On 11/14/2014 06:46 PM, [email protected] <javascript:> wrote: > >> The former produces the message about a missing dependency, the > >> latter produces > >> the message about a ghost file. > > > > You should use "order only input", so replace this: > > > > : main.cpp One.h |> g++ -Wall $(INCFLAGS) -g -c main.cpp |> main.o > > > > with this: > > > > : main.cpp | One.h |> g++ -Wall $(INCFLAGS) -g -c main.cpp |> main.o > > Actually you need to state proper path, that's also a problem in your > project. Tup doesn't understand your include path, so if you say "One.h" > it expects that file in the directory it runs. So the above line should > be: > > : main.cpp | $(TUP_CWD)/basic/libgen/src/One.h |> g++ -Wall $(INCFLAGS) > -g -c main.cpp |> main.o > > Now it will work. Giving explicit path can be somehow solved using > global groups, but that feature is still undocumented, so all you can do > is search the list for some info if you want to use it. > > Regards, > FCh > -- -- 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.
