Re: Generate m4 dependencies
- From: Jean-David Beyer <jeandavid8@xxxxxxxxxxx>
- Date: Sun, 21 Jan 2007 23:10:07 GMT
Dima wrote:
Dan Espen wrote:What would happen if you ran the m4 code through the gcc compiler? You might
"Dima" <dimsol@xxxxxxxxx> writes:
Probably I was not clear enough.I don't think there are too many people that have used m4
I'm looking something similar to -M flag of gcc which returns all
header files which are included in compiled file.
This list can be used later in makefile as dependency.
m4 have also "include" directive which resembles C #include. Is
there're something similar to "gcc -M" for m4?
to the extent that they need a tool for dependencies.
Have you looked at turning on the m4 trace and parsing that?
You could modify m4 or get a copy of makedepend and modify
it to handle m4.
Hi,
There's an option to invoke m4 in debug mode. In the mode all included
files are printed. So it indeed possible to filter out from it all
included files.
I just thought that there's a better way and not to invent the wheel
twice.
BR
Dima
get that to work, especially if you could turn off further passes in the
compiler. Maybe running cpp alone would be enough, but I never tried
anything like this.
--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ PGP-Key: 9A2FC99A Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 18:05:01 up 92 days, 20:39, 5 users, load average: 4.14, 4.20, 4.24
.
- References:
- Generate m4 dependencies
- From: Dima
- Re: Generate m4 dependencies
- From: Dima
- Re: Generate m4 dependencies
- From: Dan Espen
- Re: Generate m4 dependencies
- From: Dima
- Generate m4 dependencies
- Prev by Date: Stats comp.os.linux.misc (last 7 days)
- Next by Date: Re: ~~~~~~~~ Amazing Real Booby Downloads ~~~~~~~`
- Previous by thread: Re: Generate m4 dependencies
- Next by thread: pop3d recommendation
- Index(es):
Relevant Pages
|