On 10/23/2014 06:42 PM, Jonatan Olofsson wrote:
Note that, with a Tupfile in each directory, both directories would always be built, which is what I want to avoid. Hence, I can't use a Tupfile

This is not true. You can do sth like this:

ifeq(@(SOME_VARIABLE),y)
... all the rules ...
...
...
endif

This way the files would be built only if configured. I guess that in your case one tupfile would have:
ifeq(@(MCU_SERIES),stm32f1)
and the other one:
ifeq(@(MCU_SERIES),stm32f2)

If you want to stick to your original idea, you can always prefix output with "@(MCU_SERIES)/", like this:
: input.c |> arm-none-eabi-gcc -c %f -o %o ... |> @(MCU_SERIES)/%B.o

There are many options, so if you still have problems, just ask - I use tup for microcontrollers too (;

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.

Reply via email to