Target and cleartarget macro

Hi, hope someone can help. I am trying to tie a target macro to rake and a cleartarget macro to brutal slash but it doesnt work. I have smart targetting enabled and I want to have my current target be targetted when I use rake and when I spam brutal slash I want that target to be cleared so smart targetting will work again. I have a rake macro like this :
/target
/cast [@mouseover, exists] Rake

and a brutal slash macro
/cleartarget
/target
/cast [@mouseover, exists] Brutal Slash

the first macro works, but the second macro to clear target doesnt… any ideas? thanks