This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFA:] SUN make VPATH breakage at libsupc++ header installation
- To: tromey at redhat dot com
- Subject: Re: [RFA:] SUN make VPATH breakage at libsupc++ header installation
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Date: Fri, 1 Jun 2001 17:33:19 +0200
- CC: hans-peter dot nilsson at axis dot com, gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org, bug-automake at gnu dot org
> From: Tom Tromey <tromey@redhat.com>
> Date: 01 Jun 2001 08:22:11 -0600
> >>>>> ">" == Hans-Peter Nilsson <hans-peter.nilsson@axis.com> writes:
> >> automake people (CC:ed) might want to consider changing the default
> >> installheader expansion along these lines
>
> Automake has always adopted the rule that VPATH builds are supported
> only with GNU make.
Why doesn't the automake documentation say so explicitly?
Grepping for VPATH, I can only find this passage from INSTALL
(about srcdir != objdir): "To do this, you must use a version of
`make' that supports the `VPATH' variable, such as GNU `make'".
Well, to the untrained eye, SUN make supports VPATH... Perhaps
you might want to consider documenting that you don't support
SUN make no matter what, and perhaps remove what hacks there
are.
> Vendor makes, including Sun, don't handle VPATH
> well enough to use them. I think if you look you'll discover that
> supporting Sun make's VPATH would require adding little hacks all over
> automake.
Again: there *are* little hacks. For instance, lib/am/check.am,
check-TESTS. Besides, I though automake was *supposed* to
handle such little hacks...
> I'm sure there are old discussions about this in the automake list
> archives. I don't remember all the specifics any more.
It would help avoid irritating discussions if something had been
added to the documentation.
> >> + p=`basename $$p0`; \
>
> You're prohibited from using basename in a Makefile rule by the GNU
> Coding Standards. See (Standards)Utilities in Makefiles.
Argh, bummer. So I have make it use "sed" or whatever is used
elsewhere and do another two or three bootstraps. Fun.
brgds, H-P