| Date: Thu, 12 Feb 2004 20:21:27 +0000
| From: P at draigBrady.com
|
| Brian Foster wrote:
| > does anyone happen to know of a makedepend(1)-like tool
| > for *ix (plus, ideally, Cygwin), which is not buried deep
| > in the guts of the X11 development system? [ ... ]
| > the gcc(1) or GNU cpp(1) `-M' option family may or may
| > not be an acceptable alternative.
|
| I've used cpp -MM with good results. Dependency stuff can be
| trick though. Here's part of one of my Makefiles, [ ... ]
thanks Pádraig.
unfortunately, what you illustrated won't work
at all for my situation for several technical
reasons; however, it may be adaptable.
we are currently using one of the `-M' options
(I do not recall which one right now), but in an
extremely _stupid_ manner: e.g., your example
computes the dependencies for multiple files in
c.8 lines and c.5 processes. but the current
mess (and that is putting it lightly!) I am
trying to straighten out uses c.100 lines of
(badly written) bash(1), an uncertain number
of temporary files, and over 30 processes to
compute the dependencies of just _one_ file! ;-(
and the core is `cpp -Msomething'! ;-\ yeech.
cheers!
-blf-
--
«How many surrealists does it take to | Brian Foster Montpellier,
change a lightbulb? Three. One calms | blf at utvinternet.ie France
the warthog, and two fill the bathtub | Stop E$$o (ExxonMobile)!
with brightly-colored machine tools.» | http://www.stopesso.com
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!