Mercurial > hg > config
view bin/make-targets.sh @ 869:ca1fb54c03ee
https://coderwall.com/p/7aymfa/please-oh-please-use-git-pull-rebase
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 10 Sep 2018 10:23:50 -0700 |
parents | d4403d13fb31 |
children |
line wrap: on
line source
#!/bin/bash # list makefile targets # from http://stackoverflow.com/questions/4219255/how-do-you-get-the-list-of-targets-in-a-makefile make -pRrq 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($1 !~ "^[#.]") {print $1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$'