missioncontrol
missioncontrol copied to clipboard
make build re-runs yarn build even if nothing changed
If I run make build
twice, 70s is spent again running yarn build
in the 2nd invocation, even though no ui files have been modified. Perhaps the UI build part could be split out to another makefile rule that depends on the ui/
directory, and so only triggers if newer than the dist/
directory?
To my knowledge make doesn't support directories as targets, but we could probably wrap the invocation of yarn build in some kind of "if" clause that checks the condition you mention.