AtomBuild / atom-build-make

GNU Make plugin for atom-build
MIT License
13 stars 19 forks source link

simple parsing for make targets #3

Closed klorenz closed 8 years ago

klorenz commented 9 years ago

Hi, this adds all simple make targets of form <name>: to list of selectable targets.

Regards, Kiwi

noseglid commented 9 years ago

Another way to approach this, which addresses the issues I've outlined below is something along these lines: make -qp | awk -F':' '/^[a-zA-Z0-9][^$#\/\t=]*:([^=]|$)/ {split($1,A,/ /);for(i in A)print A[i]}' which I borrowed from this stackoverflow post.

noseglid commented 8 years ago

Superseeded by #7