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: Klett, Michael
Subject: RE: DOS gnu Make automatic variable / implicit rule question
Date: Fri, 18 Mar 2005 15:57:07 -0700

Thanks Harvey.
 
It certainly works with this toy sample - now I need to try to figure out what the silly user (me!) did in the larger app that didn't work.  :-(  I'm sure I tried that but the evidence says otherwise.
 
Thanks,
Mike
-----Original Message-----
From: Harvey Werner [mailto:address@hidden
Sent: Wednesday, March 16, 2005 5:47 PM
To: Klett, Michael; address@hidden
Subject: RE: DOS gnu Make automatic variable / implicit rule question

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]