« Prev 4.3.4 Phony Targets | Table of Contents | Next » 4.3.6 Build Hooks |
A target can be marked as depending on another file that Rscons would not
otherwise know about via the Environment#depends
function. For example,
to force the linker to re-link a Program output when a linker script changes:
env.Program("a.out", "foo.c", "LDFLAGS" => %w[-T linker_script.ld]) env.depends("a.out", "linker_script.ld")
You can pass multiple dependency files to Environment#depends
:
env.depends("my_app", "config/link.ld", "README.txt", *glob("assets/**/*"))
« Prev 4.3.4 Phony Targets | Table of Contents | Next » 4.3.6 Build Hooks |