The material below is Open Game Content from a 3PP Source
School transmutation; Level cleric 2, sorcerer/wizard 2, witch-4wfg 2
Range close (25 ft. + 5 ft./2 levels)
Target one object of up to 10 cu. ft./level or one construct creature of any size
This spell functions as mending, except that it repairs 1d6 points of damage per level when cast on a construct creature (maximum 5d6).
Make whole can fix destroyed magic items (at 0 hit points or less), and restores the magic properties of the item if your caster level is at least twice that of the item. Items with charges (such as wands) and single-use items (such as potions and scrolls) cannot be repaired in this way. When make whole is used on a construct creature, the spell bypasses any immunity to magic as if the spell did not allow spell resistance.