substitution with make

Sascha <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization 1&1 Internet AG
Message-ID <op.ted53qgsfw42w2@idefix>
Hi all


I have a problem with makefiles.

We have about 100 makefiles in our project.

There is following global rule :

DO:= DOSTH.exe


They all make use of following syntax

	$(DO) file1.txt file2.txt

This is a easy substitution,

D"OSTH.exe file1.txt file2.txt" is executed

Now i would love to change to global rule :

that in the end following is executed :

  DOSTHNEW.exe filelist -Parameter1 -Parameter2

Can i achive this without touching the makefiles ?
Is there a any / a clever way with the power of make only ?
I want to insert the files not at the end but in the middle ?

Or do I have to use SH Scripting.

Thanks , Sascha





-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.