Smarr formula for black holes with primary and secondary scalar hair | Synapse