help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I derive a dependency filename from a stem value?


From: hans . peter . van . lohuizen
Subject: Re: How can I derive a dependency filename from a stem value?
Date: Tue, 4 Nov 2003 11:56:55 +0100




Hi Noel,


>I believe this is in the documentation.  See, for example, the Automatic Variables section in >make-info.6.

It looks like I can not use automatic variables in the prerequisite lines?

I tried things like:

%ddb/generic.db : %cmd/dc_setup.tcl \
                  %cmd/$(filter_out $*,../../ work)_constr.tcl
                       

But this is not filled in.
also a line like:
                   %cmd/$*_constr.tcl

is not filled in.
Do you (or somene else) have a suggestion?

Thanks

Hans Peter.


address@hidden wrote:
>
> Hi,
>
> I am trying to derive a dependcy file name from a stem value.
> I have a generic rule setup  like:
>
> $(GEN_MOD) = ../../MODULE1/work ../../MODULE2/work ../../MODULE3/work
>
> %ddb/generic.db : %cmd/dc_setup.tcl
>         commands
>
> generic : $(GEN_MOD)
>
> This works ok for dependency dc_setup.tcl.
> Now I have to add a dependency file were the module name is in the dependency name like:
> MODULE1_constr.tcl.
>
> So I tried for a start something like:
>
> %ddb/generic.db : %cmd/dc_setup.tcl \
>                   %cmd/%_constr.tcl
>         commands
>
> This does not work. % is not expanded. How can I derive the module name from the stem value (../../<module>/work) and add this to the name in the dependency?
>
> Thanks a lot for your help!!
>
> Regards,
>
> Hans Peter.
>
>              -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-make

--
NOTICE: If received in error, please destroy and notify sender.  Sender does not waive confidentiality or privilege, and use is prohibited.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]