Hello,

I started to learn tup, however I've stumbled on an issue while generating 
files into different directories. My folder structure looks like this:

tup_test4
|---newmath
|     |---square.c
|     |---square.h
|     |---Tupfile
|---hello.c
|---Tupfile


My goal is to generate all the object files into objs direcotry, all 
libraries into libs and build the program out of that. Here is how my 
Tupfile looks like:

newmath: Tupfile
: foreach *.c |> gcc -c %f -o %o |> ../objs/%B.o
: ../objs/square.o |> ar crv %0 %f |> ../libs/libnewmath.a

tup_test4: Tupfile
: *.c |> gcc -c %f -o %o |> objs/%B.o
: objs/hello.o objs/square.o |> gcc %f -o %o |> hello

However I get following error:
Exlpicityly named file "objs/square.o" can't be listed as an input because 
it was genrated from external directory "newmath" - try placing the file in 
a group instead and using the group as an input.

What's the issue? I was googling a bit and it appears this is not possible 
to achieve to put all the object files into it's separate folder etc...

Any advices? Is there a way how to put objects, libraries etc. into it's 
own directories?

Thank you,
Vojtech

-- 
-- 
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.

Reply via email to