Merge pull request #865 from metal3d/feat-makefile

Add Makefile completion
pull/870/head
Nils Winkler 2016-12-22 08:29:22 +01:00 committed by GitHub
commit d21e48e792
1 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1,3 @@
# Add completion for Makefile
# see http://stackoverflow.com/a/38415982/1472048
complete -W "\`grep -oE '^[a-zA-Z0-9_-]+:([^=]|$)' Makefile | sed 's/[^a-zA-Z0-9_-]*$//'\`" make