Skip to content

Instantly share code, notes, and snippets.

@trodrigues
Created March 6, 2012 10:37
Show Gist options
  • Save trodrigues/1985612 to your computer and use it in GitHub Desktop.
Save trodrigues/1985612 to your computer and use it in GitHub Desktop.
make help
#!/bin/bash
tasks=`grep "\w*:" Makefile|sed "s/all:.*//g"|cut -d ":" -f 1|sed s/\.PHONY//g`
echo "Available Makefile tasks:"
for i in $tasks ; do
echo $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment