Makefile: Difference between revisions
→Extracting TODO Statements: Credits to Caleb1994 for pointing this one out.
[unchecked revision] | [unchecked revision] |
(interwiki) |
(→Extracting TODO Statements: Credits to Caleb1994 for pointing this one out.) |
||
Line 181:
<pre>
todolist:
-@for file in $(ALLFILES:Makefile=); do fgrep -H -e TODO -e FIXME $$file; done; true
</pre>
:'''Note:''' ''$(ALLFILES:Makefile=) is a list of everything in $(ALLFILES), except for the string "Makefile" which is replaced with nothing (i.e., removed from the list). This avoids a self-referring match, where the string "TODO" in the grep command would find itself. (Of course, it also avoids finding any *real* TODO's in the Makefile, but there's always a downside. ;-) )''
=== Dependencies, pt. 3 ===
|