tup
tup copied to clipboard
Dynamic command as input
Hi, I wonder if there is a way to do a input based on shell command and output it in another directory:
FILES = `find file/*.md -type f`
: $(FILES) |> md2html %f > %o |> server/%B.html
You could have a script that outputs build rules, and then run it from your Tupfile using the run
command. But in this specific case, a simple : foreach
rule would do the trick as well.
@sboukortt Doesn't that improve the complicity? I don't hope that I need to use something similar to cmake, autotools or ./configure in order to use tup. This will make tup similar to ninja, using most of the time building those build rules.