Title: Message
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:[EMAIL PROTECTED]
Sent: Wednesday, March 16, 2005 5:47 PM
To: Klett, Michael; [email protected]
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Klett, Michael
Sent: Wednesday, March 16, 2005 4:30 PM
To: [email protected]
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

_______________________________________________
Make-w32 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/make-w32

Reply via email to