delete-tf-backend: aws s3api delete-bucket \ --bucket ${TF_BACKEND_BUCKET} \ $(if ${AWS_PROFILE},--profile ${AWS_PROFILE},) An inline conditional expression works like this: $(if condition,then-part[,else-part])