You just need to select an suffix that will can't be the name of a file in the folder. For example .
. So the rules become the following:
%/.:
mkdir -p $@
.SECONDEXPANSION:
$(objects): $$(dir $$@).
As .
refers to the directory itself this should not create problems what-so-ever :)