delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/14/00:54:39

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <67B808B0DD93D211ABEE0000B498356B2E23E4@internet.kbgroup.co.nz>
From: Neil Clayton <neil DOT clayton AT kbgroup DOT co DOT nz>
To: "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Make, and VPATH's
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Date: Wed, 14 Jun 2000 17:10:44 +1200

I'm attempting to compile some java code via make, and am running into some
difficulty when I attempt to split the source and class file locations.

I'm using jdeps to generate parts of the makefile, here is some partial
output from jdeps. (BTW: source is located in /src/src and classes are in
/src/classes).

----------------------
/src/classes/nz/co/kbgroup/cs/guifw/model/AggregateChange.class:
/src/src/nz/co/kbgroup/cs/guifw/model/AggregateChange.java
        $(JAVACOMPILE)
/src/src/nz/co/kbgroup/cs/guifw/model/AggregateChange.java

/src/classes/nz/co/kbgroup/cs/guifw/swingfactory/model/SwingAggregateChange.
class:
src/src/nz/co/kbgroup/cs/guifw/swingfactory/model/SwingAggregateChange.java
        $(JAVACOMPILE)
/src/src/nz/co/kbgroup/cs/guifw/swingfactory/model/SwingAggregateChange.java

/src/classes/nz/co/kbgroup/cs/guifw/swingfactory/model/SwingAggregateChange.
class: /src/classes/nz/co/kbgroup/cs/guifw/model/AggregateChange.class

/src/classes/nz/co/kbgroup/cs/activeobject/server/general/MethodObject.class
: /src/src/nz/co/kbgroup/cs/activeobject/server/general/MethodObject.java
        $(JAVACOMPILE)
/src/src/nz/co/kbgroup/cs/activeobject/server/general/MethodObject.java


/src/classes/nz/co/kbgroup/cs/activeobject/server/general/ThreadPoolEmptyExc
eption.class:
/src/src/nz/co/kbgroup/cs/activeobject/server/general/ThreadPoolEmptyExcepti
on.java
        $(JAVACOMPILE)
/src/src/nz/co/kbgroup/cs/activeobject/server/general/ThreadPoolEmptyExcepti
on.java

...

----------------------

JAVACOMPILE is set to: jikes -g -nowarn -d /src/classes

Make runs OK, and everything appears to work, but when I run make again, it
recompiles everything from scratch. It's as though it never see's/finds the
target (the .class files). If I change back to using the same dir for both
source and class files, it works.

I've tried using VPATH = /src/src:/src/classes but that does not help (and
I'm not sure I've understood it anyway!).
I've lookup up the GNU doco on make, and it says the target is built if
either make can't find the target, or it's out of date compared to the
source files. I'm assuming here that it can't find the target for some
reason.

The only thing I can think of is that it's got something to do with me using
full paths in the rules.

Anyone got any ideas on this?

Neil

KB Group Ltd - eBusiness Solutions 
Neil Clayton
Solutions Developer
Neil DOT Clayton AT KBGroup DOT co DOT nz 
Ph +64 4 384 5680, Fax +64 4 384 5681
PO Box 9231, Wellington, New Zealand 
KB Group Website <http://www.kbgroup.co.nz/> 

The information contained in this mail message is confidential 
and may also be legally privileged. If you are not the intended 
recipient, please note that any use, dissemination, further 
distribution, or reproduction of this message in any form what 
so ever, is strictly prohibited.  If the mail is in error, please 
notify me by return E-mail, delete your copy of the message, 
and accept my apologies for any inconvenience caused.





--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019