You're right, `mkdir -p $@`is wrong