[lug] OT: Makefile oddity
Ken Weinert
mc at morat.net
Wed Apr 24 09:13:11 MDT 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 24 Apr 2002 8:24, you wrote:
> So I have what I hope is one last hurdle here to emerging from the Dark
> Ages of non-cvs and tons of sym links in hard-to-package layouts. Using
> something like this as an example of generating the dependencies, I have
> a problem due to intermediate object files going to a separate
> directory:
Well, I took a look, didn't see anything obvious in the options, but this
sed command should work OK:
sed 's:^\([a-z]\):\.\./obj/\1:'
This is stuck inline between the output of g++ and the redirect into the
dependency file. The first pattern will only match filenames starting with
lower case so you may need to expand it - the intent is only do the
substitution on lines that start with a character as continuation lines
either have space or tab as the first character.
It's probably not a perfect match, but should be a step in the right
direction, hope it helps.
- --
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 like long walks -- especially when they are taken by people
who annoy me. - Fred Allen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjzGy4wACgkQ+OzddpJ08c5fwgCgo0RnTTDUx2rB397U8VB214IT
JjwAnRqIP/hHJJApmmx0/us0Ge4cBOCa
=3jvi
-----END PGP SIGNATURE-----
More information about the LUG
mailing list