Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
maketargets
#!/bin/sh
#
# Prints out the targets available to make.
#
# Usage: maketargets file?
#
# On windows probably pipe into sort and uniq, e.g.
#
# maketargets | sort | uniq
#
files="$@ GNUMakefile Makefile makefile"
for f in $files; do
test -f $f && {
grep "^[A-Za-z0-9_\-\.\/\\]*:" $f | cut -d: -f1
}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.