Similarly to other users, I'm using 3 files (Tuprules, Tupdefault, Tupfile)
to build an entire source tree, but I need to exclude a few things. (Yell
at me if this is an X/Y problem)
My directory structure looks something like:
Root/
├── Tupdefault
├── Tupfile
├── Tuprules.tup
├── Dir1/
└── Dir2/
├── _inc/
│ ├── a.h
├── _src/
│ ├── a.c
│ └── b.c
├── _test/
│ ├── bad.c
└── Subdir1/
├── _inc/
│ └── d.h
└── _src/
├── d.c
└── e.c
I want to compile ONLY those .c files which contained within a _src/
folder. To do this, I wrote the following line:
: foreach _src/*.c |> gcc-c %f -o %o |> %B.o Root/<objs>
This should work great, except I get the following error:
tup error: Expected node '_src' to be in directory 'Root/Dir1', but it is
not there
I understand WHY this error occurs, but I consider the behaviour a bit
odd. If tup doesn't require there to be any .c files in a folder when glob
is used, why does it require the subdirectory to exist? In any case, are
there any good ways to fix this that don't involve renaming or moving files?
--
--
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.