I'd like to know if there's any wildcard for directory structure in Tupfile, something like %B.o, which takes input filename without extension.
My Tupfile rules currently look like this:
: foreach src/*.cpp |> !cxx_c_debug |> build/d/o/%B.o
: foreach src/dir/*.cpp |> !cxx_c_debug |> build/d/o/dir/%B.o
: foreach src/dir2/subdir/*.cpp |> !cxx_c_debug |> build/d/o/dir2/subdir/%B.o
...
As you can imagine, there are many dirs and subdirs. I would like to use some kind of wildcard for bolded directory structure, instead of enumerating those one by one. Is there any way to accomplish this without creating a new Tupfile in each of those directories?
Thanks