Skip to content

Instantly share code, notes, and snippets.

@mark-d-holmberg
Created October 4, 2011 19:52
Show Gist options
  • Save mark-d-holmberg/1262609 to your computer and use it in GitHub Desktop.
Save mark-d-holmberg/1262609 to your computer and use it in GitHub Desktop.
Grepping Makefiles for Executable Names
#TODO: Match the optional ".x86" extension
grep -Rin --after-context 1 "all:" $(find -type f -iname "Makefile") | grep -Rin "\-o\ \b\w\+-\?\w\+-\?\w\+\?\?\b"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment