It's fairly surprising that making a target run before/after these extension points makes it not trigger at all for the top-level build. #68 should be addressed together with this so that such an extension target knows whether it's running in the top-level build.