[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Tricky suffix rule problem for Corba
From: |
CARTER-HITCHIN, David, FM |
Subject: |
RE: Tricky suffix rule problem for Corba |
Date: |
Mon, 13 Feb 2006 16:18:22 -0000 |
Hi Paul,
Thanks for replying. Sorry I didn't really finish my account of what
happens: The .cc and .h files get created in the source dirs w,x,y or z,
and so when we rerun make it tries to find ../idl/a.cc or ../idl/a.h and of
course never finds them, so it rebuilds.
> %.h ../idl/%.cc : ../idl/%.idl
> $(IDL_COMMAND) $(IDL_OPTIONS) $<
I tried a few things like this. The variation you give means the target is
still '../idl/gds_server.h' which is not where the header needs to live and
the pre-requisite is '../idl/../idl/gds_svc_man.idl' which looks broken but
we're just making make skip between dirs and is the same as what we've
started with.
Any other ideas? I could hard code specific rules for these files but I'd
prefer to have a suffix rule if possible.
Thanks,
David Carter-Hitchin.
--
Royal Bank of Scotland
Interest Rate Derivatives IT
135 Bishopsgate
LONDON EC2M 3TP
Tel: +44 (0) 207 085 1088
> -----Original Message-----
> From: Paul Smith [mailto:address@hidden On Behalf Of Paul D. Smith
> Sent: 13 February 2006 16:01
> To: CARTER-HITCHIN, David, FM
> Cc: 'address@hidden'
> Subject: Re: Tricky suffix rule problem for Corba
>
>
> %% "CARTER-HITCHIN, David, FM" <address@hidden> writes:
>
> cdf> The rule to build the headers is like this:
>
> cdf> %.h %.cc: %.idl
> cdf> $(IDL_COMMAND) $(IDL_OPTIONS) $<
>
> cdf> This is the problem - the prerequisite $< is
> '../idl/a.idl' (for
> cdf> example) and the target is '../idl/a.h' when it should be just
> cdf> 'a.h'.
>
> You don't say what you want to do with the .cc file but...
>
> %.h ../idl/%.cc : ../idl/%.idl
> $(IDL_COMMAND) $(IDL_OPTIONS) $<
>
> --
> --------------------------------------------------------------
> -----------------
> Paul D. Smith <address@hidden> Find some GNU make tips at:
> http://www.gnu.org http://make.paulandlesley.org
> "Please remain calm...I may be mad, but I am a
> professional." --Mad Scientist
>
***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered
Office: 36 St Andrew Square, Edinburgh EH2 2YB.
Authorized and regulated by the Financial Services Authority
This e-mail message is confidential and for use by the
addressee only. If the message is received by anyone other
than the addressee, please return the message to the sender
by replying to it and then delete the message from your
computer. Internet e-mails are not necessarily secure. The
Royal Bank of Scotland plc does not accept responsibility for
changes made to this message after it was sent.
Whilst all reasonable care has been taken to avoid the
transmission of viruses, it is the responsibility of the recipient to
ensure that the onward transmission, opening or use of this
message and any attachments will not adversely affect its
systems or data. No responsibility is accepted by The Royal
Bank of Scotland plc in this regard and the recipient should carry
out such virus and other checks as it considers appropriate.
Visit our websites at:
http://www.rbos.com
http://www.rbsmarkets.com
********************************************************************************
- Tricky suffix rule problem for Corba, CARTER-HITCHIN, David, FM, 2006/02/13
- RE: Tricky suffix rule problem for Corba,
CARTER-HITCHIN, David, FM <=
- RE: Tricky suffix rule problem for Corba, CARTER-HITCHIN, David, FM, 2006/02/13
- RE: Tricky suffix rule problem for Corba, CARTER-HITCHIN, David, FM, 2006/02/13
- RE: Tricky suffix rule problem for Corba, CARTER-HITCHIN, David, FM, 2006/02/15