From: "Pascal Davoust" <Pascal.Davoust@genesyslab.co.uk>
To: <cygwin@cygwin.com>
Subject: [make] VPATH pb
Date: Wed, 27 Dec 2000 08:35:00 -0000 [thread overview]
Message-ID: <HHEMJFBEFJPEABMDHEIBIEKECDAA.Pascal.Davoust@genesyslab.co.uk> (raw)
Hi,
I'm currently using the latest CygWin distrib (1.1.6) on MS Win2k
Professional, and I'm having a strange behaviour when I use VPATH.
Here's the makefile I want to use (as simple as I can) :
==========================================
SHELL=bash
VPATH=src;bin;lib
%.bin: %.src
@echo Building binary...
cp $< bin/$@
%.lib: %.bin
@echo Building library...
cp $< lib/$@
file.bin: file.src
file.lib: file.bin
==========================================
with three different existing directories src, bin and lib. Each will
contain the .src, .bin and .lib file.
When the 'file.bin' and 'file.lib' files don't exist (the first time I run
make), here's what I get :
------------------------------------------
>make file.lib
Building binary...
cp src/file.src bin/file.bin
Building library...
cp file.bin lib/file.lib
cp: file.bin: No such file or directory
make: *** [file.lib] Error 1
------------------------------------------
A second run produces the expected output :
------------------------------------------
Building library...
cp bin/file.bin lib/file.lib
------------------------------------------
The question is : why is the VPATH variable not used when chaining the two
steps ? It looks like VPATH is applied only to the 'file.src' target and not
on the 'file.bin' one...
Could somebody explain that to me ?
I'm not sure whether it's a problem related to my understanding of the make
tool, the GNU implementation, or the CygWin port... I tried the same on a
Unix in my company with dmake (not gmake), and it works like a charm.
Unfortunatly, I don't have access to gmake on this Unix box to compare with
the Win32 port.
BTW, the default make mode is 'unix' (I checked it), so no problem here.
Thanks in advance,
Pascal Davoust.
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
next reply other threads:[~2000-12-27 8:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-27 8:35 Pascal Davoust [this message]
2000-12-27 12:02 ` `less', not soren
2000-12-27 12:21 ` [make] VPATH pb Avraham H. Fraenkel
2000-12-28 9:06 ` Patrick Doyle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=HHEMJFBEFJPEABMDHEIBIEKECDAA.Pascal.Davoust@genesyslab.co.uk \
--to=pascal.davoust@genesyslab.co.uk \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).