Merge pull request #217 from jeansebastienh/216-gnumakefile

completions/make: Supporting GNUmakefile and makefile
This commit is contained in:
Koichi Murase
2021-12-29 02:05:42 +09:00
committed by GitHub

View File

@ -1,3 +1,3 @@
# Add completion for Makefile # Add completion for Makefile
# see http://stackoverflow.com/a/38415982/1472048 # see http://stackoverflow.com/a/38415982/1472048
complete -W "\`grep -oE '^[a-zA-Z0-9_-]+:([^=]|$)' Makefile | sed 's/[^a-zA-Z0-9_-]*$//'\`" make complete -W "\$(shopt -u nullglob; shopt -s nocaseglob; command grep -oE '^[a-zA-Z0-9_-]+:([^=]|\$)' *makefile 2>/dev/null | command sed 's/[^a-zA-Z0-9_-]*\$//')" make