It seems to me that the calls to dist for the case of make or ninja builds have been exchanged. It was correct when created in commit cb64ceec but the not was removed later on in commit 57d00a93 without swapping the two branches of the if. @ebassi may I ask you to review this ? Thank you.