build: Update rules for auxiliaries without duplicate code.