]> pd.if.org Git - pdclib/blobdiff - Makefile
Added target 'find' for convenience.
[pdclib] / Makefile
index 9bfc7615c78ffeae0d8ba5965f4f8b48c4bf13a9..81a353ba0e56d1c42b59ad09eb0c4afbdcddc8af 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -46,6 +46,9 @@ todolist:
 fixmelist:
        -@for file in $(ALLFILES); do grep -H FIXME $$file; done; true
 
+find:
+       @find functions/ includes/ internals/ platform/ -name "*\.[ch]" -type f | xargs grep $$FIND
+
 %.o: %.c Makefile
        @echo " CC      $@"
        @$(CC) $(CFLAGS) -Wall -DNDEBUG -MMD -MP -MT "$*.d $*.t" -g -std=c99 -I./includes -I./internals -c $< -o $@