Post build copy of shared object problem

When trying to copy shared object after a build, the static library is being
copied as well . The following is added in the case of shared object to the file:

This works properly when I select copying the static library; the follwing
is added to
-$(if $(filter AR, $(BUILD_TYPE)), @$(CP_HOST) $(BUILDNAME) $(ACCISLIB))

I’ve fixed this manually by using a construct similar to the static library
copy macro:
-$(if $(filter SO, $(BUILD_TYPE)), @$(CP_HOST) $(BUILDNAME) $(ACCISLIB))

Just letting you know.