Article View: gnu.utils.bug
Article #64Bug concerning VPATH and spaces
From: Ian Flanigan
Date: Wed, 04 Nov 1992 00:12
Date: Wed, 04 Nov 1992 00:12
31 lines
1466 bytes
1466 bytes
I'm using:
GNU Make version 3.62, by Richard Stallman and Roland McGrath.
Copyright (C) 1988-1991 Free Software Foundation, Inc.
The problem:
Spaces in the VPATH list, after colons, are considered
significant and therefore match very little.
Example:
VPATH = headers: src
%.h:%.ph
@sed -e 's/TEST/test/g' < $< > $@
This rule will fail for any headers in the "src" directory since make
will be looking for a " src" directory. The normal Sun make works just
fine on this rule, looking in the "src" directory.
Why is this a bug? Well, in the makefile that I use, we do a lot
munging of directory names with things like FOO =
{$BAR:%/booga=%/goober}. Then, when we're ready, we stick them in the
VPATH with VPATH = {$FOO:%=%:}, which adds the appropriate colons. It
also keeps the spaces about, so we fail as per the above example.
In the mean time, if there is any way that I can remove the spaces, I'd
like to know.
Thanks much,
Ian Flanigan
Technical Details
Message-ID:
<9211041212.AA10204@froggy.wustl.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!froggy.wustl.edu!flanShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!froggy.wustl.edu!flan From: flan@froggy.wustl.edu (Ian Flanigan) Subject: Bug concerning VPATH and spaces Message-ID: <9211041212.AA10204@froggy.wustl.edu> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Wed, 4 Nov 1992 00:12:26 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 32