3 ms·
Is tup capable of building out of tree? By this I mean having: project_1/src/main.c project_1/src/something/a.c project_1/src/something/a.h Is there some way
by gravypod 10y ago
Is tup capable of building out of tree? By this I mean having:
project_1/src/main.c
project_1/src/something/a.c
project_1/src/something/a.h
Is there some way for tup to manage discovering the files to build and everything else needed or will I need to add every file path in manually like make?
- codyps 10y agoregarding "out of tree": I'm not quite sure about your explanation here (just looks like a list of source files), but presuming you mean "creates output files in a seperate directory from source", it doesn't really have complete support for that. You can use "variants" to place output files in a subdirectory of the source tree, though. > "some way for tup to manage discovering the files to build" Well, no. It's not a "convention" build tool like rust's `cargo` where you just place things in the default locations and it figures it out. You can use the `run ./script args` mechanism in tup to run your own script that emits tup rules, though. The manual has details: http://gittup.org/tup/manual.html http://gittup.org/tup/manual.html
- gravypod 10y agoBy out of tree I mean discover all the source files from the file tree.