make-w32
[Top][All Lists]
Advanced

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

RE: DOS gnu Make automatic variable / implicit rule question


From: Harvey Werner
Subject: RE: DOS gnu Make automatic variable / implicit rule question
Date: Wed, 16 Mar 2005 16:46:32 -0800

Try using $* instead of $%. That should give you the stem of the target.

 

--

Harvey Werner

PolyServe, Inc.

 

-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Klett, Michael
Sent: Wednesday, March 16, 2005 4:30 PM
To: address@hidden
Subject: DOS gnu Make automatic variable / implicit rule question

 

Hello list,

I'm trying to use a gnu makefile for what I think should be a simple straight forward sort of thing.  I want to set up an implicit rule that dos the following:

If "foo.in" is newer than "foo.out" then run the DOS command "fubar foo".  I set up my rule thusly:

%.out : %.in
        ./fubar $%

I enter the following command at my DOS prompt:

make foo.out -n

and what I get out of it is the command:

./fubar

and not what I desired, that is:

./fubar foo

Thanks in advance for any insight you can provide.  Also, for my own future reference, is there an e-mail archive somewhere that I could search?  I doubt I'm the first person to look for this information and I really hate bugging everyone.

Thanks again,
Mike

Michael F. Klett
Maxtor Corporation
MS:  BC 122
2452 Clover Basin Drive
Longmont, CO  80503
Direct:  303-678-3166;  Fax:  303-702-4376


reply via email to

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