$ vim ~/.bash_profile
add
complete -W "\`grep -oE '^[a-zA-Z0-9_.-]+:([^=]|$)' Makefile | sed 's/[^a-zA-Z0-9_.-]*$//'\`" make
https://stackoverflow.com/questions/4188324/bash-completion-of-makefile-target/38415982#38415982
| package main | |
| import ( | |
| "bufio" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "os" | |
| "os/exec" | |
| "strings" |
$ vim ~/.bash_profile
add
complete -W "\`grep -oE '^[a-zA-Z0-9_.-]+:([^=]|$)' Makefile | sed 's/[^a-zA-Z0-9_.-]*$//'\`" make
https://stackoverflow.com/questions/4188324/bash-completion-of-makefile-target/38415982#38415982
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| background: #f06; | |
| background: linear-gradient(45deg, #000, yellow); | |
| min-height: 100%; |