Daniel Herring (11 May 2020 21:46) wrote, inter alia,
> For example, when a code generator like Qt's moc or uic is run, it
> could also generate a rule update that causes Make to compile and link
> the results.
For reference, Qt6's moc (the Qt project's current dev branch) supports
dependency generation:
.../path/to/moc --output-dep-file ../function-with-attributes.h -o test.moc
creates test.moc as generated source and test.moc.d containing the line
test.moc: ../function-with-attributes.h
there's also --dep-file-path and --dep-file-rule-name to control the
output path and the rule name
Eddy.