in reply to Single Line Perl Command and Makefile
perl -0777pe '/asdf = ((?:\w+ ?)+)/ and $_ = join "_", sort {length $b <=> length $b or $a cmp $b } split /\s+/, $1' makefile