You could use mkdir -p $@