[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
automatic dependency tracking
From: |
Tom Lord |
Subject: |
automatic dependency tracking |
Date: |
Fri, 18 Jan 2002 17:44:14 -0800 (PST) |
Is there anything known to be non-portable about this technique for
generating a list of all included files?
cc [-I options] -E <source-file> \
| sed -e '{
/^#[[:space:]]\{1,\}[[:digit:]]\{1,\}[[:space:]]\{1,\}"/!d
s/^[^"]*"//
s/"[^"]*$//
}'
| sort -u
I noticed that depcomp uses something similar for some compilers, but
not others.
-t
- automatic dependency tracking,
Tom Lord <=