|
From: Reginald B. <pul...@ya...> - 2008-09-04 16:58:17
|
FWIW
I'm not sure I understood the question, but this may be a 90% solution. A little editing of the output is required, but it finds all the targets. should be run in the top level directory.
Have Fun!
Reg
#!/bin/sh
find . -name Makefile -exec egrep '^.*:' {} \; \
| egrep -v '#|\$|.*=.*:|^ *\.' \
| sed 's/:.*/:/' \
| sort -u
|