[lug] OT: Makefile oddity

D. Stimits stimits at idcomm.com
Fri Apr 19 15:36:45 MDT 2002


Ken Weinert wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> All in all this is very odd. I have a project that I use included makefiles
> on and it works just fine. Doesn't try to create the makefile fragment after
> using it, just reads it in and runs.
> 
> I've had it this way for years.
> 
> One potential difference is that I have an explicit relative path to the
> included file - are you depending on vpath mechanisms to find it?

Nope. Something like:
MODULE_ABC_PATH = ../module1
...
do something ${MODULE_ABC_PATH}/myfile.cpp

And according to debug mode, it spends about 1000 times more at trying
to figure out how to compile or assemble my Makefile.custom with the
MODULE_ABC_PATH type items, than it does doing anything else. I even
tried to delete all the default dependency rules and suffixes and name
only specific ones, no go. It tries all kinds of compiles, even
assembler rules, sccs tests, rcs tests, everything under the sun...to
act on Makefile.custom as if it were a source file. It just won't
believe me when I tell it that this is a Makefile to be included, and
not source. Even so, the defined MODULE_ABC_PATH is correct in the file
that included it, I can echo the value or use it, but the oddness of
trying to compile the actual Makefile.custom is causing strange things.

D. Stimits, stimits at idcomm.com

> 
> On Friday 19 Apr 2002 13:06, you wrote:
> > Tom Tromey wrote:
> > > >>>>> ">" == D Stimits <stimits at idcomm.com> writes:
> > > >>
> > > >> It then tries to figure out how to build Makefile.something,
> > > >> looking for Makefile.c, Makefile.o, Makefile.everything_under_the_sun.
> 
> - --
> Ken Weinert   mc at morat.net
> GnuPG KeyID: 9274F1CE           GnuPG available at http://www.gnupg.org/
> GnuPG Key Fingerprint: 1D87 3720 BB77 4489 A928  79D6 F8EC DD76 9274 F1CE
> I hit the CTRL key but I'm still not in control!
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
> 
> iEYEARECAAYFAjzAgNYACgkQ+OzddpJ08c5t7QCfecQkgUiug1H1IMuzyEui5bV2
> yScAn16iZx7+Txl/qCbj5MYbrDPaECH4
> =Q9t0
> -----END PGP SIGNATURE-----
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug



More information about the LUG mailing list