2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-18 07:54:00 +00:00
fish-shell/share/functions/__fish_print_make_targets.fish

5 lines
204 B
Fish
Raw Normal View History

function __fish_print_make_targets
set files Makefile makefile GNUmakefile
sgrep -h -E '^[^#%=$[:space:]][^#%=$]*:([^=]|$)' $files | cut -d ":" -f 1 | sed -e 's/^ *//;s/ *$//;s/ */\n/g' ^/dev/null
end